summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-05 16:31:43 -0500
committerEvan Prodromou <evan@status.net>2010-12-05 16:31:43 -0500
commit89f5dd4c182e470f063c760daf59b858cd92f9bf (patch)
tree9a8cc9a522b7c18692ed5ab8ab95d31ba3d15953 /plugins
parentf7cb854fcd127511c0b29973cc4a020a4afd9b25 (diff)
updated NoticeTitle plugin to use new activity events
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NoticeTitle/NoticeTitlePlugin.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php
index a3b4489f2..054c3d3e4 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;