forked from GNUsocial/gnu-social
For fave count, don't use distinct
This commit is contained in:
parent
2522f888c7
commit
51764be5a1
@ -778,7 +778,7 @@ class Profile extends Managed_DataObject
|
|||||||
|
|
||||||
$faves = new Fave();
|
$faves = new Fave();
|
||||||
$faves->user_id = $this->id;
|
$faves->user_id = $this->id;
|
||||||
$cnt = (int) $faves->count('distinct notice_id');
|
$cnt = (int) $faves->count('notice_id');
|
||||||
|
|
||||||
if (!empty($c)) {
|
if (!empty($c)) {
|
||||||
$c->set(Cache::key('profile:fave_count:'.$this->id), $cnt);
|
$c->set(Cache::key('profile:fave_count:'.$this->id), $cnt);
|
||||||
|
Loading…
Reference in New Issue
Block a user