mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-04 10:50:46 +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');
|
$visibility = $request->input('visibility');
|
||||||
$medias = $request->input('media');
|
$medias = $request->input('media');
|
||||||
$attachments = [];
|
$attachments = [];
|
||||||
|
@ -315,6 +316,7 @@ class InternalApiController extends Controller
|
||||||
NewStatusPipeline::dispatch($status);
|
NewStatusPipeline::dispatch($status);
|
||||||
Cache::forget('user:account:id:'.$profile->user_id);
|
Cache::forget('user:account:id:'.$profile->user_id);
|
||||||
Cache::forget('profile:status_count:'.$profile->id);
|
Cache::forget('profile:status_count:'.$profile->id);
|
||||||
|
Cache::forget($user->storageUsedKey());
|
||||||
return $status->url();
|
return $status->url();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue