Skip to content

Upcoming change to sign-up API #572

@bocops

Description

@bocops

mastodon/mastodon#34495 details upcoming changes to the sign-up API that we should implement on our end. As far as I can tell, in the simplest case we'd need to:

  • make min_age available in Instance.Registrations
  • add date_of_birth (String, optional) parameter to AccountMethods.registerAccount(...)

Following a decision on how exactly we want to detect problematic requests, we could additionally, later:

  • in registerAccount(...), detect if dateOfBirth is null while client.getInstance().registrations.minAge is not, then throw an exception
  • make dateOfBirth some date-based type (does a variant of our PrecisionDateTime work here?), then detect if the resulting age would be smaller than the necessary minAge of the connected Mastodon instance.

Metadata

Metadata

Assignees

Labels

blockedBlocked by another issue or PR

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions