use InboxNoticeStream for createsim
This commit is contained in:
parent
831eaa039b
commit
9cfd1a59ee
@ -82,7 +82,8 @@ function newNotice($i, $tagmax)
|
||||
|
||||
if ($is_reply == 0) {
|
||||
common_set_user($user);
|
||||
$notices = $user->noticesWithFriends(0, 20);
|
||||
$stream = new InboxNoticeStream($user);
|
||||
$notices = $stream->getNotices(0, 20, null, null);
|
||||
if ($notices->N > 0) {
|
||||
$nval = rand(0, $notices->N - 1);
|
||||
$notices->fetch(); // go to 0th
|
||||
|
Loading…
Reference in New Issue
Block a user