From 54e87dd2c37e1645231378a4b17b0c549807fa78 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 27 Oct 2015 17:19:03 +0000 Subject: [PATCH] Morkup correct author for a repeat The original author is not the author of this entry, but of the original entry. --- lib/noticelistitem.php | 3 ++- plugins/Share/SharePlugin.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index dc171409f4..7701cd8a6c 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -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); diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index c337efbaec..c31686e445 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -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').' ');