Update Profile model

This commit is contained in:
Daniel Supernault 2021-09-06 00:29:06 -06:00
parent 9e630851a3
commit 32995064ec
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class Profile extends Model
public function followingCount($short = false)
{
$count = Cache::remember('profile:following_count:v1:'.$this->id, now()->addMonths(1), function() {
$count = Cache::remember('profile:following_count:'.$this->id, now()->addMonths(1), function() {
if($this->domain == null && $this->user->settings->show_profile_following_count == false) {
return 0;
}
@ -82,7 +82,7 @@ class Profile extends Model
public function followerCount($short = false)
{
$count = Cache::remember('profile:follower_count:v1:'.$this->id, now()->addMonths(1), function() {
$count = Cache::remember('profile:follower_count:'.$this->id, now()->addMonths(1), function() {
if($this->domain == null && $this->user->settings->show_profile_follower_count == false) {
return 0;
}