Merge pull request #6438 from pixelfed/shleeable-patch-22

UpdatePersonValidator rejects null name/summary due to required|nullable conflict
pull/6441/head
dansup 3 weeks ago committed by GitHub
commit 1f04a190a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -541,7 +541,7 @@ class RemoteAuthController extends Controller
abort_unless($request->session()->exists('oauth_remasto_id'), 403);
$this->validate($request, [
'bio' => 'required|nullable|max:500',
'bio' => 'present|nullable|max:500',
]);
$profile = $request->user()->profile;

@ -55,9 +55,9 @@ class UpdatePersonValidator
self::sameHost($attribute, $value, $fail, $payload['actor']);
},
],
'object.summary' => 'required|string|nullable',
'object.summary' => 'present|string|nullable',
'object.preferredUsername' => 'required|string',
'object.name' => 'required|string|nullable',
'object.name' => 'present|string|nullable',
'object.inbox' => [
'required',
'url',

Loading…
Cancel
Save