3 class RepeatedByMeNoticeStream extends CachingNoticeStream
5 function __construct($user)
7 parent::__construct(new RawRepeatedByMeNoticeStream($user),
8 'user:repeated_by_me:'.$user->id);
12 class RawRepeatedByMeNoticeStream extends NoticeStream
16 function __construct($user)
21 function getNoticeIds($offset, $limit, $since_id, $max_id)
23 $notice = new Notice();
25 $notice->selectAdd(); // clears it
26 $notice->selectAdd('id');
28 $notice->profile_id = $this->user->id;
29 $notice->whereAdd('repeat_of IS NOT NULL');
31 $notice->orderBy('created DESC, id DESC');
33 if (!is_null($offset)) {
34 $notice->limit($offset, $limit);
37 Notice::addWhereSinceId($notice, $since_id);
38 Notice::addWhereMaxId($notice, $max_id);
42 if ($notice->find()) {
43 while ($notice->fetch()) {