Explorar o código

Update ProfileController

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
b6553f82c6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/ProfileController.php

+ 2 - 2
app/Http/Controllers/ProfileController.php

@@ -51,7 +51,7 @@ class ProfileController extends Controller
             $settings = $user->user->settings;
         }
 
-        if ($request->wantsJson() && config('pixelfed.activitypub_enabled')) {
+        if ($request->wantsJson() && config('federation.activitypub.enabled')) {
             return $this->showActivityPub($request, $user);
         }
 
@@ -90,7 +90,7 @@ class ProfileController extends Controller
         $user = Profile::whereUsername($username)->firstOrFail();
         $settings = User::whereUsername($username)->firstOrFail()->settings;
 
-        if ($request->wantsJson() && config('pixelfed.activitypub_enabled')) {
+        if ($request->wantsJson() && config('federation.activitypub.enabled')) {
             return $this->showActivityPub($request, $user);
         }