1
0
Fork 0
forked from mirror/pixelfed

Update SettingsController

This commit is contained in:
Daniel Supernault 2022-02-08 03:35:58 -07:00
parent f363a3275a
commit 927a2a7d04
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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) {