From 143e4e4ef636d3119fac54af088fd4b0371f29c3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 18 Nov 2018 21:46:08 -0700 Subject: [PATCH] Update FederationController --- app/Http/Controllers/FederationController.php | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/app/Http/Controllers/FederationController.php b/app/Http/Controllers/FederationController.php index 6088f0c94..ea119d077 100644 --- a/app/Http/Controllers/FederationController.php +++ b/app/Http/Controllers/FederationController.php @@ -167,27 +167,7 @@ XML; public function userInbox(Request $request, $username) { - // if (config('pixelfed.activitypub_enabled') == false || config('pixelfed.ap_inbox') == false) { - // abort(403, 'Inbox support disabled'); - // } - return; - - $type = [ - 'application/activity+json' - ]; - if (in_array($request->header('Content-Type'), $type) == false) { - abort(500, 'Invalid request'); - } - $profile = Profile::whereUsername($username)->firstOrFail(); - $headers = [ - 'date' => $request->header('date'), - 'signature' => $request->header('signature'), - 'digest' => $request->header('digest'), - 'content-type' => $request->header('content-type'), - 'path' => $request->getRequestUri(), - 'host' => $request->getHttpHost() - ]; - InboxWorker::dispatch($headers, $profile, $request->all()); + // todo } public function userFollowing(Request $request, $username)