1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00

Update ProfileController

This commit is contained in:
Daniel Supernault 2019-06-09 17:22:37 -06:00
parent 610c4f3445
commit b6553f82c6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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