We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 4b7c904f authored by mattl's avatar mattl

Merge branch 'correct-author-for-repeat' into 'master'

Markup correct author for a repeat

The original author is not the author of this entry, but of the original entry.

See merge request !51
parents a3ddc4ec 54e87dd2
......@@ -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);
......@@ -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').' ');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment