Update Profile, fix status count

This commit is contained in:
Daniel Supernault 2020-12-27 14:45:31 -07:00
parent b74e14c4e5
commit 6dcd472be6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
5 changed files with 80 additions and 15 deletions

View file

@ -210,6 +210,7 @@ class StatusController extends Controller
}
Cache::forget('_api:statuses:recent_9:' . $status->profile_id);
Cache::forget('profile:status_count:' . $status->profile_id);
if ($status->profile_id == $user->profile->id || $user->is_admin == true) {
Cache::forget('profile:status_count:'.$status->profile_id);
StatusDelete::dispatch($status);