We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0cefab36 authored by mattl's avatar mattl

Replies and Conversation noticestreams should only get POSTs by default

parent 9afdc407
......@@ -73,6 +73,7 @@ class RawConversationNoticeStream extends NoticeStream
function __construct($id)
{
parent::__construct();
$this->id = $id;
}
......
......@@ -75,6 +75,7 @@ class RawReplyNoticeStream extends NoticeStream
function __construct($userId)
{
parent::__construct();
$this->userId = $userId;
}
......@@ -86,6 +87,11 @@ class RawReplyNoticeStream extends NoticeStream
Notice::addWhereSinceId($reply, $since_id, 'notice_id', 'modified');
Notice::addWhereMaxId($reply, $max_id, 'notice_id', 'modified');
if (!empty($this->selectVerbs)) {
$reply->joinAdd(array('notice_id', 'notice:id'));
$reply->whereAddIn('notice.verb', $this->selectVerbs, 'string');
}
$reply->orderBy('modified DESC, notice_id DESC');
if (!is_null($offset)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment