From 9cfd1a59ee129bdd875cc6e211925554e3f1a675 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 7 Apr 2011 15:29:56 -0400 Subject: [PATCH] use InboxNoticeStream for createsim --- scripts/createsim.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5