Morkup correct author for a repeat

The original author is not the author of this entry, but of the original entry.
This commit is contained in:
Stephen Paul Weber 2015-10-27 17:19:03 +00:00
parent 0ba53edd96
commit 54e87dd2c3
2 changed files with 3 additions and 2 deletions

View File

@ -235,8 +235,9 @@ class NoticeListItem extends Widget
function showAuthor()
{
$attrs = array('href' => $this->profile->profileurl,
'class' => 'h-card p-author',
'class' => 'h-card',
'title' => $this->profile->getNickname());
if(empty($this->repeat)) { $attrs['class'] .= ' p-author'; }
if (Event::handle('StartShowNoticeItemAuthor', array($this->profile, $this->out, &$attrs))) {
$this->out->elementStart('a', $attrs);

View File

@ -204,7 +204,7 @@ class SharePlugin extends ActivityVerbHandlerPlugin
'class' => 'h-card p-author',
'title' => $repeater->getFancyName());
$nli->out->elementStart('span', 'repeat h-entry');
$nli->out->elementStart('span', 'repeat');
// TRANS: Addition in notice list item if notice was repeated. Followed by a span with a nickname.
$nli->out->raw(_('Repeated by').' ');