]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Tag notice streams should only show post verbs
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 11 Jan 2016 14:15:23 +0000 (15:15 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 11 Jan 2016 14:15:23 +0000 (15:15 +0100)
lib/tagnoticestream.php

index 567f04b7e45c56ba8866da522e11a9e4656b1f78..d24907fa7ee5176acd45a9433a6439a456a4ef8e 100644 (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)) {