Pārlūkot izejas kodu

Update FederationController

Daniel Supernault 6 gadi atpakaļ
vecāks
revīzija
05745d2fb3
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      app/Http/Controllers/FederationController.php

+ 5 - 3
app/Http/Controllers/FederationController.php

@@ -167,9 +167,11 @@ XML;
 
     public function userInbox(Request $request, $username)
     {
-        if (config('pixelfed.activitypub_enabled') == false) {
-            abort(403);
-        }
+        // if (config('pixelfed.activitypub_enabled') == false || config('pixelfed.ap_inbox') == false) {
+        //     abort(403, 'Inbox support disabled');
+        // }
+        return;
+        
         $type = [
             'application/activity+json'
         ];