Skip to content

Add more FE-required fields to /api/v1/instance

Alex Gleason requested to merge alexgleason/pleroma:activation-meta into develop

account_activation_required is needed by the frontend to conditionally handle the registration form. It's currently available in /nodeinfo/2.1.json, but this MR adds it to /api/v1/instance too.

Screenshot_from_2020-05-29_15-22-46

When account_activation_required is disabled (default), the user will be logged in immediately after registering. When enabled, the user needs to see a message saying "Check your email to confirm your account"

Related: !2430 (merged) #1710 (closed)

One thing I'm unsure of is whether this should go under "metadata" or not. Technically the entire controller is metadata.

Edited by feld

Merge request reports