forked from mirror/pixelfed
Update StatusController
This commit is contained in:
parent
72272d8f09
commit
a5019b8907
2 changed files with 4 additions and 3 deletions
|
@ -74,7 +74,10 @@ class StatusController extends Controller
|
|||
return redirect('/login?next='.urlencode('/' . $request->path()));
|
||||
}
|
||||
$id = HashidService::decode($id);
|
||||
$status = Status::findOrFail($id);
|
||||
$status = Status::find($id);
|
||||
if(!$status) {
|
||||
return redirect('/404');
|
||||
}
|
||||
return redirect($status->url());
|
||||
}
|
||||
|
||||
|
|
|
@ -115,8 +115,6 @@ class StatusDelete implements ShouldQueue
|
|||
$tag->delete();
|
||||
});
|
||||
|
||||
MediaTag::whereStatusId($status->id)
|
||||
->get();
|
||||
$status->forceDelete();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue