mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update SettingsController
This commit is contained in:
parent
119077829d
commit
f363a3275a
1 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,9 @@ class SettingsController extends Controller
|
||||||
public function mediaSettings(Request $request)
|
public function mediaSettings(Request $request)
|
||||||
{
|
{
|
||||||
$setting = UserSetting::whereUserId($request->user()->id)->firstOrFail();
|
$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,
|
'default_license' => null,
|
||||||
'media_descriptions' => false
|
'media_descriptions' => false
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue