mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-03 10:50:46 +00:00
Merge pull request #370 from pixelfed/frontend-ui-refactor
Update ProfileController
This commit is contained in:
commit
7c69c43dc9
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ class ProfileController extends Controller
|
||||||
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
|
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
|
||||||
];
|
];
|
||||||
|
|
||||||
if(in_array($request->header('accept'), $mimes) && config('pixelfed.activitypub_enabled')) {
|
if(str_contains($request->header('accept'), $mimes) && config('pixelfed.activitypub_enabled')) {
|
||||||
return $this->showActivityPub($request, $user);
|
return $this->showActivityPub($request, $user);
|
||||||
}
|
}
|
||||||
if($user->is_private == true) {
|
if($user->is_private == true) {
|
||||||
|
@ -58,7 +58,7 @@ class ProfileController extends Controller
|
||||||
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
|
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
|
||||||
];
|
];
|
||||||
|
|
||||||
if(in_array($request->header('accept'), $mimes) && config('pixelfed.activitypub_enabled')) {
|
if(str_contains($request->header('accept'), $mimes) && config('pixelfed.activitypub_enabled')) {
|
||||||
return $this->showActivityPub($request, $user);
|
return $this->showActivityPub($request, $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue