For fave count, don't use distinct

This commit is contained in:
Evan Prodromou 2011-08-27 18:21:44 -04:00
parent 2522f888c7
commit 51764be5a1
1 changed files with 1 additions and 1 deletions

View 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);