From: Evan Prodromou Date: Sun, 5 Dec 2010 21:31:43 +0000 (-0500) Subject: updated NoticeTitle plugin to use new activity events X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89f5dd4c182e470f063c760daf59b858cd92f9bf;p=quix0rs-gnu-social.git updated NoticeTitle plugin to use new activity events --- diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index a3b4489f2c..054c3d3e48 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -259,12 +259,17 @@ class NoticeTitlePlugin extends Plugin * @return boolean hook value */ - function onStartActivityTitle(&$notice, &$xs, &$output) + function onEndNoticeAsActivity($notice, &$activity) { $title = Notice_title::fromNotice($notice); if (!empty($title)) { - $output = $title; + foreach ($activity->objects as $obj) { + if ($obj->id == $notice->uri) { + $obj->title = $title; + break; + } + } } return true;