Update StatusController

This commit is contained in:
Daniel Supernault 2020-12-17 23:12:27 -07:00
parent 5ac1746aff
commit 3244ca92ff
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -200,6 +200,7 @@ class StatusController extends Controller
$u->save();
}
Cache::forget('_api:statuses:recent_9:' . $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);