Merge pull request #5915 from pixelfed/staging

Staging
pull/5926/head^2
daniel 11 months ago committed by GitHub
commit 9e0fefdc62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -788,15 +788,11 @@ class PublicApiController extends Controller
private function determineVisibility($profile, $user)
{
if (! $user || ! isset($user->profile_id)) {
return [];
}
if (! $profile || ! isset($profile['id'])) {
return [];
}
if ($profile['id'] == $user->profile_id) {
if ($user && $profile['id'] == $user->profile_id) {
return ['public', 'unlisted', 'private'];
}

Loading…
Cancel
Save