]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticestream.php
Merge branch 'mention_branch' into 'nightly'
[quix0rs-gnu-social.git] / lib / noticestream.php
index c072941a693e78b7435d09f01a295f6de7f12271..01c5ee4a72e56e970aec2db641f26daf63b3300d 100644 (file)
@@ -46,7 +46,18 @@ if (!defined('STATUSNET')) {
  */
 abstract class NoticeStream
 {
-    protected $allVerbs = false;    // Will only get 'post' activityverbs by default.
+    protected $selectVerbs   = null;    // must be set to array
+    protected $unselectVerbs = null;    // must be set to array
+
+    public function __construct()
+    {
+        if ($this->selectVerbs === null) {
+            $this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
+        }
+        if ($this->unselectVerbs === null) {
+            $this->unselectVerbs = array(ActivityVerb::DELETE);
+        }
+    }
 
     abstract function getNoticeIds($offset, $limit, $since_id, $max_id);