function __construct(Profile $target)
{
$this->target = $target;
+ $this->unselectVerbs = array(ActivityVerb::DELETE);
}
/**
if (!empty($this->selectVerbs)) {
$notice->whereAddIn('verb', $this->selectVerbs, $notice->columnType('verb'));
}
+ if (!empty($this->unselectVerbs)) {
+ $notice->whereAddIn('!verb', $this->unselectVerbs, $notice->columnType('verb'));
+ }
$notice->limit($offset, $limit);
// notice.id will give us even really old posts, which were
// recently imported. For example if a remote instance had
*/
abstract class NoticeStream
{
- // Will only get notices with the 'post' activityverb by default.
protected $selectVerbs = array();
+ protected $unselectVerbs = array();
public function __construct()
{
$this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
+ $this->unselectVerbs = array(ActivityVerb::DELETE);
}
abstract function getNoticeIds($offset, $limit, $since_id, $max_id);