From 927a2a7d04026c56159b983ca9059863e399f38c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 8 Feb 2022 03:35:58 -0700 Subject: [PATCH] Update SettingsController --- app/Http/Controllers/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 628a742ec..318b75919 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -280,7 +280,7 @@ class SettingsController extends Controller $uid = $request->user()->id; $setting = UserSetting::whereUserId($uid)->firstOrFail(); - $compose = json_decode($setting->compose_settings, true); + $compose = is_string($setting->compose_settings) ? json_decode($setting->compose_settings, true) : $setting->compose_settings; $changed = false; if($sync) {