X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FNoticeTitle%2FNoticeTitlePlugin.php;h=1b910cc4084045c5f1718fcfb02780a9ac5ab40b;hb=06503cc11b28a64067740adc265042cc9f6f4307;hp=4227703bfd8b35c71e06f00acec35f6f24b2bb10;hpb=1ee79dc3791162f7ef9b92befaef597328266ce1;p=quix0rs-gnu-social.git diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index 4227703bfd..1b910cc408 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -217,19 +217,19 @@ class NoticeTitlePlugin extends Plugin /** * Show the notice title in Atom output * - * @param Notice &$notice Notice being shown - * @param XMLStringer &$xs output context - * @param string &$output string to be output as title + * @param Notice $notice Notice being shown + * @param Activity $act Activity object to be modified + * @param Profile $scoped Currently logged in/scoped profile * * @return boolean hook value */ - function onEndNoticeAsActivity($notice, &$activity) + function onEndNoticeAsActivity(Notice $stored, Activity $act, Profile $scoped=null) { - $title = Notice_title::fromNotice($notice); + $title = Notice_title::fromNotice($stored); if (!empty($title)) { - foreach ($activity->objects as $obj) { - if ($obj->id == $notice->uri) { + foreach ($act->objects as $obj) { + if ($obj->id == $stored->getUri()) { $obj->title = $title; break; }