]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
For fave count, don't use distinct
authorEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 22:21:44 +0000 (18:21 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 22:21:44 +0000 (18:21 -0400)
classes/Profile.php

index a6275cf45178c3374d2979c3503c6b2ed8dc9825..5ace57004ce716c1ae64d43abade10651f367d93 100644 (file)
@@ -778,7 +778,7 @@ class Profile extends Managed_DataObject
 
         $faves = new Fave();
         $faves->user_id = $this->id;
-        $cnt = (int) $faves->count('distinct notice_id');
+        $cnt = (int) $faves->count('notice_id');
 
         if (!empty($c)) {
             $c->set(Cache::key('profile:fave_count:'.$this->id), $cnt);