Update StatusController

pull/1292/head
Daniel Supernault 6 years ago
parent b7a7368c62
commit f033f84159
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -229,14 +229,12 @@ class StatusController extends Controller
$this->authCheck(); $this->authCheck();
$this->validate($request, [ $this->validate($request, [
'item' => 'required|integer', 'item' => 'required|integer|min:1',
]); ]);
$profile = Auth::user()->profile; $profile = Auth::user()->profile;
$status = Status::withCount('shares')->findOrFail($request->input('item')); $status = Status::withCount('shares')->findOrFail($request->input('item'));
Cache::forget('transform:status:'.$status->url());
$count = $status->shares_count; $count = $status->shares_count;
$exists = Status::whereProfileId(Auth::user()->profile->id) $exists = Status::whereProfileId(Auth::user()->profile->id)

Loading…
Cancel
Save