Update InternalApiController

This commit is contained in:
Daniel Supernault 2019-09-05 23:11:55 -06:00
parent aff20f62cd
commit b13392f683
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -256,7 +256,8 @@ class InternalApiController extends Controller
}
}
$profile = Auth::user()->profile;
$user = Auth::user();
$profile = $user->profile;
$visibility = $request->input('visibility');
$medias = $request->input('media');
$attachments = [];
@ -315,6 +316,7 @@ class InternalApiController extends Controller
NewStatusPipeline::dispatch($status);
Cache::forget('user:account:id:'.$profile->user_id);
Cache::forget('profile:status_count:'.$profile->id);
Cache::forget($user->storageUsedKey());
return $status->url();
}