Update AccountService

pull/6808/head
Daniel Supernault 4 weeks ago
parent e4033b05bd
commit 59f57b1107
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -126,12 +126,15 @@ class AccountService
$settings = $user->settings;
$other = array_merge(self::defaultSettings()['other'], $settings->other ?? []);
$compose = array_merge(self::defaultSettings()['compose_settings'], $settings->compose_settings);
return [
'reduce_motion' => (bool) $settings->reduce_motion,
'high_contrast_mode' => (bool) $settings->high_contrast_mode,
'video_autoplay' => (bool) $settings->video_autoplay,
'media_descriptions' => (bool) $settings->media_descriptions,
'media_descriptions' => (bool) $compose['media_descriptions'],
'default_scope' => (string) $compose['default_scope'],
'default_license' => (int) $compose['default_license'],
'crawlable' => (bool) $settings->crawlable,
'show_profile_follower_count' => (bool) $settings->show_profile_follower_count,
'show_profile_following_count' => (bool) $settings->show_profile_following_count,

Loading…
Cancel
Save