From 15d12b209db14d46af5e640ec8c5cf181df1f54e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 18 Jan 2016 22:04:42 +0100 Subject: [PATCH] Don't include delete verbs in profile notice stream. --- lib/profilenoticestream.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/profilenoticestream.php b/lib/profilenoticestream.php index 3c8de05855..38b16859f7 100644 --- a/lib/profilenoticestream.php +++ b/lib/profilenoticestream.php @@ -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)) { -- 2.39.5