From: Mikael Nordfeldth Date: Mon, 11 Jan 2016 14:15:23 +0000 (+0100) Subject: Tag notice streams should only show post verbs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b2b969a7717e0b9e62f75e471065d29bd7a2f8c;p=quix0rs-gnu-social.git Tag notice streams should only show post verbs --- 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)) {