]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use InboxNoticeStream for createsim
authorEvan Prodromou <evan@status.net>
Thu, 7 Apr 2011 19:29:56 +0000 (15:29 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 7 Apr 2011 19:29:56 +0000 (15:29 -0400)
scripts/createsim.php

index b460be1dd22609c7e854adcd69a4b573fd5a6cc4..f25890676e2d732463bc58bc7615bf372546f25f 100644 (file)
@@ -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