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()) {
$notice->free();
$notice = NULL;
- if (common_config('debug', 'homevspublic')) {
- common_debug('Public raw: ' . implode(',', $ids));
- }
-
- return $ids;
+ return $ids;
}
-}
\ No newline at end of file
+}