Replies and Conversation noticestreams should only get POSTs by default
This commit is contained in:
parent
9afdc40763
commit
0cefab3603
@ -73,6 +73,7 @@ class RawConversationNoticeStream extends NoticeStream
|
|||||||
|
|
||||||
function __construct($id)
|
function __construct($id)
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ class RawReplyNoticeStream extends NoticeStream
|
|||||||
|
|
||||||
function __construct($userId)
|
function __construct($userId)
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
$this->userId = $userId;
|
$this->userId = $userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,6 +87,11 @@ class RawReplyNoticeStream extends NoticeStream
|
|||||||
Notice::addWhereSinceId($reply, $since_id, 'notice_id', 'modified');
|
Notice::addWhereSinceId($reply, $since_id, 'notice_id', 'modified');
|
||||||
Notice::addWhereMaxId($reply, $max_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');
|
$reply->orderBy('modified DESC, notice_id DESC');
|
||||||
|
|
||||||
if (!is_null($offset)) {
|
if (!is_null($offset)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user