mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update InternalApiController
This commit is contained in:
parent
aff20f62cd
commit
b13392f683
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue