mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
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