Support incoming null values for `Person.discoverable` (resolves #908)
What does this MR do?
Some instance software sends Person
objects with the discoverable
property set to null
instead of a boolean value. This causes an exception when creating or updating the user, as Person.discoverable
is mapped to user.explorable
which does not allow nulls. We fix this by coercing the raw value to a boolean. (This is the same trick used for Person.hideOnlineStatus
and Person.enableRss
.)
Contribution Guidelines
By submitting this merge request, you agree to follow our Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have made sure to test this merge request
Merge request reports
Activity
Filter activity
added bugbackend federation labels
changed title from Support incomming null values for
Person.discoverable
(resolves #908 (closed)) to Support incoming null values forPerson.discoverable
(resolves #908 (closed))mentioned in commit 2d0bd012
Please register or sign in to reply