forked from mirror/pixelfed
Update StatusController
This commit is contained in:
parent
b7a7368c62
commit
f033f84159
1 changed files with 1 additions and 3 deletions
|
@ -229,14 +229,12 @@ class StatusController extends Controller
|
|||
$this->authCheck();
|
||||
|
||||
$this->validate($request, [
|
||||
'item' => 'required|integer',
|
||||
'item' => 'required|integer|min:1',
|
||||
]);
|
||||
|
||||
$profile = Auth::user()->profile;
|
||||
$status = Status::withCount('shares')->findOrFail($request->input('item'));
|
||||
|
||||
Cache::forget('transform:status:'.$status->url());
|
||||
|
||||
$count = $status->shares_count;
|
||||
|
||||
$exists = Status::whereProfileId(Auth::user()->profile->id)
|
||||
|
|
Loading…
Reference in a new issue