From 5b2b969a7717e0b9e62f75e471065d29bd7a2f8c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 11 Jan 2016 15:15:23 +0100 Subject: [PATCH] Tag notice streams should only show post verbs --- lib/tagnoticestream.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/tagnoticestream.php b/lib/tagnoticestream.php index 567f04b7e4..d24907fa7e 100644 --- a/lib/tagnoticestream.php +++ b/lib/tagnoticestream.php @@ -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)) { -- 2.39.5