Commit de5049bf authored by mmn's avatar mmn

since_id and max_id for RawInboxNoticeStream

Otherwise you could only fetch a strict limit since the latest notice.
parent 79773611
......@@ -112,6 +112,12 @@ class RawInboxNoticeStream extends NoticeStream
'OR IN (SELECT notice_id FROM attention WHERE profile_id=%1$d)',
if (!empty($since_id)) {
$notice->whereAdd(sprintf(' > %d', $since_id));
if (!empty($max_id)) {
$notice->whereAdd(sprintf(' <= %d', $max_id));
$notice->limit($offset, $limit);
$notice->orderBy('notice.created DESC');
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment