From: Brion Vibber Date: Fri, 30 Oct 2009 20:53:23 +0000 (-0400) Subject: Use nickname from profile, not user object, to avoid barfing warnings on Twitter... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7ed31c27bc883b7b7b6a9af6391aacd8d897d78;p=quix0rs-gnu-social.git Use nickname from profile, not user object, to avoid barfing warnings on Twitter messages imported into the timeline. --- diff --git a/actions/shownotice.php b/actions/shownotice.php index 41408c23cc..5d16fdad9e 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -172,9 +172,9 @@ class ShownoticeAction extends OwnerDesignAction function title() { if (!empty($this->profile->fullname)) { - $base = $this->profile->fullname . ' (' . $this->user->nickname . ') '; + $base = $this->profile->fullname . ' (' . $this->profile->nickname . ') '; } else { - $base = $this->user->nickname; + $base = $this->profile->nickname; } return sprintf(_('%1$s\'s status on %2$s'),