]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make avatar bigger on single notice pages
authorRobin Millette <millette@controlyourself.ca>
Fri, 23 Jan 2009 04:52:39 +0000 (04:52 +0000)
committerRobin Millette <millette@plantard.controlezvous.ca>
Fri, 23 Jan 2009 04:52:39 +0000 (04:52 +0000)
lib/noticelist.php

index 8b0c5f3226cc459dd43bd24f166c93d1d02377bf..20bf3c9f11d5966643829d15e4ecf05d882b722d 100644 (file)
@@ -274,14 +274,19 @@ class NoticeListItem extends Widget
 
     function showAvatar()
     {
-        $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
+        if ('shownotice' === $this->out->trimmed('action')) {
+            $avatar_size = AVATAR_PROFILE_SIZE;
+        } else {
+            $avatar_size = AVATAR_STREAM_SIZE;
+        }
+        $avatar = $this->profile->getAvatar($avatar_size);
 
         $this->out->element('img', array('src' => ($avatar) ?
                                          common_avatar_display_url($avatar) :
-                                         common_default_avatar(AVATAR_STREAM_SIZE),
+                                         common_default_avatar($avatar_size),
                                          'class' => 'avatar photo',
-                                         'width' => AVATAR_STREAM_SIZE,
-                                         'height' => AVATAR_STREAM_SIZE,
+                                         'width' => $avatar_size,
+                                         'height' => $avatar_size,
                                          'alt' =>
                                          ($this->profile->fullname) ?
                                          $this->profile->fullname :