diff --git a/src/Module/Api/Mastodon/Preferences.php b/src/Module/Api/Mastodon/Preferences.php index fa27139058..035357f07d 100644 --- a/src/Module/Api/Mastodon/Preferences.php +++ b/src/Module/Api/Mastodon/Preferences.php @@ -50,9 +50,9 @@ class Preferences extends BaseApi } $sensitive = false; - $language = $user['language']; - $media = DI::pConfig()->get($uid, 'nsfw', 'disable') ? 'show_all' : 'default'; - $spoilers = DI::pConfig()->get($uid, 'system', 'disable_cw'); + $language = $user['language']; + $media = DI::pConfig()->get($uid, 'nsfw', 'disable') ? 'show_all' : 'default'; + $spoilers = DI::pConfig()->get($uid, 'system', 'disable_cw'); $preferences = new \Friendica\Object\Api\Mastodon\Preferences($visibility, $sensitive, $language, $media, $spoilers);