]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct link for repeat attribution in noticelist
authorEvan Prodromou <evan@status.net>
Mon, 14 Dec 2009 20:42:53 +0000 (15:42 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 14 Dec 2009 20:42:53 +0000 (15:42 -0500)
lib/noticelist.php

index a106478eddf120a286e95891195175bbab1b8f24..85e1befccfabf3b9f46e7028e24120acdf6d9c19 100644 (file)
@@ -535,7 +535,7 @@ class NoticeListItem extends Widget
 
             $repeater = Profile::staticGet('id', $this->repeat->profile_id);
 
-            $attrs = array('href' => $this->profile->profileurl,
+            $attrs = array('href' => $repeater->profileurl,
                            'class' => 'url');
 
             if (!empty($repeater->fullname)) {
@@ -544,12 +544,12 @@ class NoticeListItem extends Widget
 
             $this->out->elementStart('span', 'repeat vcard');
 
-            $this->out->elementStart('a', $attrs);
-
             $this->out->raw(_('Repeated by'));
 
             $avatar = $repeater->getAvatar(AVATAR_MINI_SIZE);
 
+            $this->out->elementStart('a', $attrs);
+
             $this->out->element('img', array('src' => ($avatar) ?
                                              $avatar->displayUrl() :
                                              Avatar::defaultImage(AVATAR_MINI_SIZE),