Merge pull request #3161 from pixelfed/staging

Fix typo in ApiV1Controller
This commit is contained in:
daniel 2022-01-14 17:27:48 -07:00 committed by GitHub
commit ea17d763e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ class ApiV1Controller extends Controller
abort_if(!$user, 403); abort_if(!$user, 403);
abort_if($user->status != null, 403); abort_if($user->status != null, 403);
$res = AccountService::getMastodon($id); $res = AccountService::getMastodon($user->profile_id);
$res['source'] = [ $res['source'] = [
'privacy' => $res['locked'] ? 'private' : 'public', 'privacy' => $res['locked'] ? 'private' : 'public',