]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticestream.php
Removed plugin Google-Analytics as this is free/libre and decentralized
[quix0rs-gnu-social.git] / lib / noticestream.php
index 010bfab60e4221d4dc67d3f9c0d939a25414aeb4..3b597fa08cf03899ca42406084fad93dc5c99d8b 100644 (file)
@@ -46,6 +46,15 @@ if (!defined('STATUSNET')) {
  */
 abstract class NoticeStream
 {
+    protected $selectVerbs = array();
+    protected $unselectVerbs = array();
+
+    public function __construct()
+    {
+        $this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
+        $this->unselectVerbs = array(ActivityVerb::DELETE);
+    }
+
     abstract function getNoticeIds($offset, $limit, $since_id, $max_id);
 
     function getNotices($offset, $limit, $sinceId = null, $maxId = null)
@@ -59,9 +68,6 @@ abstract class NoticeStream
 
     static function getStreamByIds($ids)
     {
-       $notices = Notice::multiGet('id', $ids);
-       // Prefill the profiles
-       Notice::fillProfiles($notices->fetchAll());
-       return $notices;
+       return Notice::multiGet('id', $ids);
     }
 }