From ec04acb9b46faacc729bdcead7b81308ac1c894e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 7 Jun 2013 11:49:34 -0400 Subject: [PATCH] Some more well-known sources from plugins --- lib/activityobject.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/activityobject.php b/lib/activityobject.php index 31cdb06af7..f4ddde318a 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -601,11 +601,13 @@ class ActivityObject static function fromNoticeSource(Notice_source $source) { $object = new ActivityObject(); + $wellKnown = array('web', 'xmpp', 'mail', 'omb', 'system', 'api', 'ostatus', + 'activity', 'feed', 'mirror', 'twitter', 'facebook'); if (Event::handle('StartActivityObjectFromNoticeSource', array($source, &$object))) { $object->type = ActivityObject::APPLICATION; - if (in_array($source->code, array('web', 'xmpp', 'mail', 'omb', 'system', 'api'))) { + if (in_array($source->code, $wellKnown)) { // We use one ID for all well-known StatusNet sources $object->id = "tag:status.net,2009:notice-source:".$source->code; } else if ($source->url) {