|
|
@ -324,8 +324,10 @@ $app->post('/settings/save', function() use($app) { |
|
|
|
if(array_key_exists('slug_field', $params) && $params['slug_field']) |
|
|
|
$user->micropub_slug_field = $params['slug_field']; |
|
|
|
|
|
|
|
if(array_key_exists('syndicate_field', $params) && $params['syndicate_field']) |
|
|
|
$user->micropub_syndicate_field = $params['syndicate_field']; |
|
|
|
if(array_key_exists('syndicate_field', $params) && $params['syndicate_field']) { |
|
|
|
if(in_array($params['syndicate_field'], ['syndicate-to','mp-syndicate-to'])) |
|
|
|
$user->micropub_syndicate_field = $params['syndicate_field']; |
|
|
|
} |
|
|
|
|
|
|
|
$user->save(); |
|
|
|
$app->response()['Content-type'] = 'application/json'; |
|
|
|