git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 51764be5 authored by Evan Prodromou's avatar Evan Prodromou

For fave count, don't use distinct

parent 2522f888
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment