From: Evan Prodromou Date: Sat, 27 Aug 2011 22:21:44 +0000 (-0400) Subject: For fave count, don't use distinct X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=51764be5a1a36898f78800ae4d96806e494c53bf;p=quix0rs-gnu-social.git For fave count, don't use distinct --- diff --git a/classes/Profile.php b/classes/Profile.php index a6275cf451..5ace57004c 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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);