Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't break old API response

Chocobozzz8679902a6774
diff --git a/server/core/controllers/api/users/registrations.ts b/server/core/controllers/api/users/registrations.ts
index 184b6dcbc7..52c9f6a319 100644
--- a/server/core/controllers/api/users/registrations.ts
+++ b/server/core/controllers/api/users/registrations.ts
@@ -139,12 +139,7 @@ async function requestRegistration (req: express.Request, res: express.Response)
Hooks.runAction('action:api.user.requested-registration', { body, registration, req, res })
- return res.json({
- state: {
- id: UserRegistrationState.PENDING,
- label: USER_REGISTRATION_STATES[UserRegistrationState.PENDING]
- }
- })
+ return res.json(registration.toFormattedJSON())
}
// ---------------------------------------------------------------------------