diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 52201dad1..f573d68e8 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -150,6 +150,8 @@ class ProfileController extends Controller public function showActivityPub(Request $request, $user) { + abort_if(!config('federation.activitypub.enabled'), 404); + if($user->status != null) { return ProfileController::accountCheck($user); } @@ -161,6 +163,8 @@ class ProfileController extends Controller public function showAtomFeed(Request $request, $user) { + abort_if(!config('federation.atom.enabled'), 404); + $profile = $user = Profile::whereNull('status')->whereNull('domain')->whereUsername($user)->whereIsPrivate(false)->firstOrFail(); if($profile->status != null) { return $this->accountCheck($profile);