From 89f5dd4c182e470f063c760daf59b858cd92f9bf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 5 Dec 2010 16:31:43 -0500 Subject: [PATCH] updated NoticeTitle plugin to use new activity events --- plugins/NoticeTitle/NoticeTitlePlugin.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.39.5