mirror of https://github.com/pixelfed/pixelfed.git
Update SettingsController
This commit is contained in:
parent
119077829d
commit
f363a3275a
|
@ -257,7 +257,9 @@ class SettingsController extends Controller
|
|||
public function mediaSettings(Request $request)
|
||||
{
|
||||
$setting = UserSetting::whereUserId($request->user()->id)->firstOrFail();
|
||||
$compose = $setting->compose_settings ? json_decode($setting->compose_settings, true) : [
|
||||
$compose = $setting->compose_settings ? (
|
||||
is_string($setting->compose_settings) ? json_decode($setting->compose_settings, true) : $setting->compose_settings
|
||||
) : [
|
||||
'default_license' => null,
|
||||
'media_descriptions' => false
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue