Commit 9cfd1a59 authored by Evan Prodromou's avatar Evan Prodromou

use InboxNoticeStream for createsim

parent 831eaa03
......@@ -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
......
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