git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

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 notice.id IN (SELECT notice_id FROM attention WHERE profile_id=%1$d)',
$this->target->id)
);
if (!empty($since_id)) {
$notice->whereAdd(sprintf('notice.id > %d', $since_id));
}
if (!empty($max_id)) {
$notice->whereAdd(sprintf('notice.id <= %d', $max_id));
}
$notice->limit($offset, $limit);
$notice->orderBy('notice.created DESC');
......
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