Use nickname from profile, not user object, to avoid barfing warnings on Twitter messages imported into the timeline.

This commit is contained in:
Brion Vibber 2009-10-30 16:53:23 -04:00
parent fc22bde67c
commit b7ed31c27b

View File

@ -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'),