X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FShare%2FSharePlugin.php;h=1f6ddbaa3fb723dea736748bb2217ff7247f83b1;hb=38c84a92c71913fff570b64d21b7d2e07dfa3dd3;hp=5b5d374abe372f79923c1f13b60102c5b7166ea1;hpb=79c40bc73b41147fbc98eb03c590f9d4383c32d1;p=quix0rs-gnu-social.git diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index 5b5d374abe..1f6ddbaa3f 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -156,7 +156,6 @@ class SharePlugin extends ActivityVerbHandlerPlugin { // TODO: How to handle repeats of deleted notices? $target = Notice::getByID($stored->repeat_of); - $act->actor = $target->getProfile()->asActivityObject(); // TRANS: A repeat activity's title. %1$s is repeater's nickname // and %2$s is the repeated user's nickname. $act->title = sprintf(_('%1$s repeated a notice by %2$s'), @@ -170,6 +169,7 @@ class SharePlugin extends ActivityVerbHandlerPlugin // Repeat is a little bit special. As it's an activity, our // ActivityObject is instead turned into an Activity $object = new Activity(); + $object->actor = $stored->getProfile()->asActivityObject(); $object->verb = ActivityVerb::SHARE; $object->content = $stored->rendered; $this->extendActivity($stored, $object); @@ -199,7 +199,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').' ');