]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't include delete verbs in profile notice stream.
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Jan 2016 21:04:42 +0000 (22:04 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Jan 2016 21:04:42 +0000 (22:04 +0100)
lib/profilenoticestream.php

index 3c8de05855bb014eeade3f4f7708d137075be186..38b16859f7f8b1e89ea977e8d8c5dc799cc7ca43 100644 (file)
@@ -133,6 +133,13 @@ class RawProfileNoticeStream extends NoticeStream
         Notice::addWhereSinceId($notice, $since_id);
         Notice::addWhereMaxId($notice, $max_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'));
+        }
+
         $notice->orderBy('created DESC, id DESC');
 
         if (!is_null($offset)) {