From 19af3e8ae9cba81047c71ee71c7ce5e4b7a34d65 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 25 Aug 2011 11:54:26 -0400 Subject: [PATCH] use 'system' for activity notice source --- plugins/Activity/ActivityPlugin.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/Activity/ActivityPlugin.php b/plugins/Activity/ActivityPlugin.php index cb33738820..d09bb6bd36 100644 --- a/plugins/Activity/ActivityPlugin.php +++ b/plugins/Activity/ActivityPlugin.php @@ -48,6 +48,7 @@ if (!defined('STATUSNET')) { class ActivityPlugin extends Plugin { const VERSION = '0.1'; + const SOURCE = 'system'; // Flags to switch off certain activity notices public $StartFollowUser = true; @@ -96,7 +97,7 @@ class ActivityPlugin extends Plugin $notice = Notice::saveNew($user->id, $content, - 'activity', + ActivityPlugin::SOURCE, array('rendered' => $rendered, 'verb' => ActivityVerb::FOLLOW, 'object_type' => ActivityObject::PERSON, @@ -129,7 +130,7 @@ class ActivityPlugin extends Plugin $notice = Notice::saveNew($user->id, $content, - 'activity', + ActivityPlugin::SOURCE, array('rendered' => $rendered, 'uri' => $uri, 'verb' => ActivityVerb::UNFOLLOW, @@ -164,7 +165,7 @@ class ActivityPlugin extends Plugin $notice = Notice::saveNew($user->id, $content, - 'activity', + ActivityPlugin::SOURCE, array('rendered' => $rendered, 'uri' => $fave->getURI(), 'verb' => ActivityVerb::FAVORITE, @@ -200,7 +201,7 @@ class ActivityPlugin extends Plugin $notice = Notice::saveNew($user->id, $content, - 'activity', + ActivityPlugin::SOURCE, array('rendered' => $rendered, 'uri' => $uri, 'verb' => ActivityVerb::UNFAVORITE, @@ -237,7 +238,7 @@ class ActivityPlugin extends Plugin $notice = Notice::saveNew($user->id, $content, - 'activity', + ActivityPlugin::SOURCE, array('rendered' => $rendered, 'uri' => $mem->getURI(), 'verb' => ActivityVerb::JOIN, @@ -274,7 +275,7 @@ class ActivityPlugin extends Plugin $notice = Notice::saveNew($user->id, $content, - 'activity', + ActivityPlugin::SOURCE, array('rendered' => $rendered, 'uri' => $uri, 'verb' => ActivityVerb::LEAVE, -- 2.39.5