]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't use getProfile() when looping
authorEvan Prodromou <evan@status.net>
Thu, 8 Mar 2012 14:17:48 +0000 (08:17 -0600)
committerEvan Prodromou <evan@status.net>
Thu, 8 Mar 2012 14:17:48 +0000 (08:17 -0600)
scripts/testuser.php

index 221f9628423cc26e693319d548ce8f5dee2833f3..dc79548bdbec2256799b3856aefa3c83af613899 100644 (file)
@@ -60,7 +60,7 @@ function testUser($filter, $user) {
 
     printfnq("Testing user %s\n", $user->nickname);
 
-    $profile = $user->getProfile();
+    $profile = Profile::staticGet('id', $user->id);
 
     $str = new ProfileNoticeStream($profile, $profile);