X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fnoticestream.php;h=01c5ee4a72e56e970aec2db641f26daf63b3300d;hb=42545c662560e15e29cf620f6ed4f5e2c75b5647;hp=e9ff47b68c154eb73641cbaf97dbb1b0126c2cae;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/lib/noticestream.php b/lib/noticestream.php index e9ff47b68c..01c5ee4a72 100644 --- a/lib/noticestream.php +++ b/lib/noticestream.php @@ -46,6 +46,19 @@ if (!defined('STATUSNET')) { */ abstract class NoticeStream { + 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); function getNotices($offset, $limit, $sinceId = null, $maxId = null)