]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Just use avatarSize() method for SingleNoticeItem
authorEvan Prodromou <evan@status.net>
Wed, 20 Apr 2011 17:39:23 +0000 (13:39 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 20 Apr 2011 17:39:23 +0000 (13:39 -0400)
actions/shownotice.php

index 1e45694fae85e249e6e83c8ad9d7957c70df571b..4f35d404696661304f665b73040850ee12a63d36 100644 (file)
@@ -333,28 +333,8 @@ class ShownoticeAction extends OwnerDesignAction
 // @todo FIXME: Class documentation missing.
 class SingleNoticeItem extends DoFollowListItem
 {
-    /**
-     * show the avatar of the notice's author
-     *
-     * We use the larger size for single notice page.
-     *
-     * @return void
-     */
-    function showAvatar()
+    function avatarSize()
     {
-       $avatar_size = AVATAR_PROFILE_SIZE;
-
-        $avatar = $this->profile->getAvatar($avatar_size);
-
-        $this->out->element('img', array('src' => ($avatar) ?
-                                         $avatar->displayUrl() :
-                                         Avatar::defaultImage($avatar_size),
-                                         'class' => 'avatar photo',
-                                         'width' => $avatar_size,
-                                         'height' => $avatar_size,
-                                         'alt' =>
-                                         ($this->profile->fullname) ?
-                                         $this->profile->fullname :
-                                         $this->profile->nickname));
+        return AVATAR_PROFILE_SIZE;
     }
 }