From: Evan Prodromou Date: Thu, 7 Apr 2011 19:29:56 +0000 (-0400) Subject: use InboxNoticeStream for createsim X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cfd1a59ee129bdd875cc6e211925554e3f1a675;p=quix0rs-gnu-social.git use InboxNoticeStream for createsim --- diff --git a/scripts/createsim.php b/scripts/createsim.php index b460be1dd2..f25890676e 100644 --- a/scripts/createsim.php +++ b/scripts/createsim.php @@ -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