Error data when creating new account with previously used e-mail should be an object
When creating a new account in Admin FE (POST /api/pleroma/admin/users
) and using an e-mail value that has already been used in the instance, error response returns data in an array:
{ ...,
data: [{ code: 409, data: {…}, error: "email has already been taken", type: "error" }]
}
And it should return an object, otherwise the error message is not displayed correctly:
{ ...,
data: { code: 409, data: {…}, error: "email has already been taken", type: "error" }
}
Related issue in Admin FE: admin-fe#159 (closed)