diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index 35d335e5..b2246440 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -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)