X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fnoticestream.php;h=0f53daf83f407e15a878d747d1268b972eb451c9;hb=681c94b57745153f3b75bdee3d68e84c643f3234;hp=e9ff47b68c154eb73641cbaf97dbb1b0126c2cae;hpb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;p=quix0rs-gnu-social.git diff --git a/lib/noticestream.php b/lib/noticestream.php index e9ff47b68c..0f53daf83f 100644 --- a/lib/noticestream.php +++ b/lib/noticestream.php @@ -46,6 +46,14 @@ if (!defined('STATUSNET')) { */ abstract class NoticeStream { + // Will only get notices with the 'post' activityverb by default. + protected $selectVerbs = array(); + + public function __construct() + { + $this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true)); + } + abstract function getNoticeIds($offset, $limit, $since_id, $max_id); function getNotices($offset, $limit, $sinceId = null, $maxId = null)