From 51764be5a1a36898f78800ae4d96806e494c53bf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 27 Aug 2011 18:21:44 -0400 Subject: [PATCH] For fave count, don't use distinct --- classes/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);