]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some more well-known sources from plugins
authorEvan Prodromou <evan@e14n.com>
Fri, 7 Jun 2013 15:49:34 +0000 (11:49 -0400)
committerEvan Prodromou <evan@e14n.com>
Fri, 7 Jun 2013 15:49:34 +0000 (11:49 -0400)
lib/activityobject.php

index 31cdb06af78c5dd1786dc2c0d31cb68a5772d5a1..f4ddde318a3c8b531385046a2933f81133e47092 100644 (file)
@@ -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) {