mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +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');
|
||||
$value = $request->input('value');
|
||||
$settings = UserSetting::whereUserId($request->user()->id)->first();
|
||||
if(!$settings) {
|
||||
$settings = UserSetting::firstOrCreate([
|
||||
'user_id' => $request->user()->id
|
||||
]);
|
||||
if(!$settings->other) {
|
||||
$other = [];
|
||||
} else {
|
||||
$other = $settings->other;
|
||||
|
|
Loading…
Reference in a new issue