From: Evan Prodromou Date: Mon, 14 Dec 2009 20:42:53 +0000 (-0500) Subject: correct link for repeat attribution in noticelist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d2a605d0e02a4e7d61b62420d7847ee1e6fcbe1;p=quix0rs-gnu-social.git correct link for repeat attribution in noticelist --- diff --git a/lib/noticelist.php b/lib/noticelist.php index a106478edd..85e1befccf 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -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),