From: Mikael Nordfeldth Date: Mon, 18 Jan 2016 21:04:42 +0000 (+0100) Subject: Don't include delete verbs in profile notice stream. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15d12b209db14d46af5e640ec8c5cf181df1f54e;p=quix0rs-gnu-social.git Don't include delete verbs in profile notice stream. --- 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)) {