class PublicNoticeStream extends ScopingNoticeStream
{
- function __construct()
+ function __construct($profile=null)
{
parent::__construct(new CachingNoticeStream(new RawPublicNoticeStream(),
- 'public'));
+ 'public'),
+ $profile);
}
}
Notice::addWhereSinceId($notice, $since_id);
Notice::addWhereMaxId($notice, $max_id);
+ if (!$this->allVerbs) {
+ $notice->whereAdd(sprintf('verb="%s" OR verb="%s"',
+ ActivityVerb::POST,
+ ActivityUtils::resolveUri(ActivityVerb::POST, true)));
+ }
+
$ids = array();
if ($notice->find()) {
return $ids;
}
-}
\ No newline at end of file
+}