mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
Update StatusController
This commit is contained in:
parent
da2777d52f
commit
4a182b494f
1 changed files with 3 additions and 3 deletions
|
@ -121,9 +121,7 @@ class StatusController extends Controller
|
||||||
|
|
||||||
public function delete(Request $request)
|
public function delete(Request $request)
|
||||||
{
|
{
|
||||||
if (!Auth::check()) {
|
$this->authCheck();
|
||||||
abort(403);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'type' => 'required|string',
|
'type' => 'required|string',
|
||||||
|
@ -141,6 +139,8 @@ class StatusController extends Controller
|
||||||
|
|
||||||
public function storeShare(Request $request)
|
public function storeShare(Request $request)
|
||||||
{
|
{
|
||||||
|
$this->authCheck();
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'item' => 'required|integer',
|
'item' => 'required|integer',
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue