mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update ApiV1Dot1Controller
This commit is contained in:
parent
f54cf0b2d7
commit
3b885709b8
1 changed files with 4 additions and 2 deletions
|
@ -869,8 +869,10 @@ class ApiV1Dot1Controller extends Controller
|
||||||
]);
|
]);
|
||||||
$field = $request->input('field');
|
$field = $request->input('field');
|
||||||
$value = $request->input('value');
|
$value = $request->input('value');
|
||||||
$settings = UserSetting::whereUserId($request->user()->id)->first();
|
$settings = UserSetting::firstOrCreate([
|
||||||
if(!$settings) {
|
'user_id' => $request->user()->id
|
||||||
|
]);
|
||||||
|
if(!$settings->other) {
|
||||||
$other = [];
|
$other = [];
|
||||||
} else {
|
} else {
|
||||||
$other = $settings->other;
|
$other = $settings->other;
|
||||||
|
|
Loading…
Reference in a new issue