Tag notice streams should only show post verbs

This commit is contained in:
Mikael Nordfeldth 2016-01-11 15:15:23 +01:00
parent 8acf930c45
commit 5b2b969a77

View File

@ -89,6 +89,13 @@ class RawTagNoticeStream extends NoticeStream
Notice::addWhereSinceId($nt, $since_id, 'notice_id');
Notice::addWhereMaxId($nt, $max_id, 'notice_id');
if (!empty($this->selectVerbs)) {
$notice->whereAddIn('verb', $this->selectVerbs, $notice->columnType('verb'));
}
if (!empty($this->unselectVerbs)) {
$notice->whereAddIn('!verb', $this->unselectVerbs, $notice->columnType('verb'));
}
$nt->orderBy('created DESC, notice_id DESC');
if (!is_null($offset)) {