Skip to content
Snippets Groups Projects

Support incoming null values for `Person.discoverable` (resolves #908)

Merged Hazelnoot requested to merge fEmber/Sharkey:hazelnoot/908-fix-null-isExplorable into develop

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading