Relay member capacity limit defined in plans but never enforced #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The three pricing plans define member limits (free = 10, basic = 100, growth = unlimited) in Query::list_plans(), and the UI displays these limits in
RelayDetailCard. However, neither the API nor any backend handler validates member count against these limits. A user on a free plan can admit an unlimited number of members to their relay.Yes, I'm not quite sure how to approach this. Probably add an API endpoint to zooid which allows callers to query the member list. We display the member list on the frontend too, which could be fetched via nip 86 or directly from the relay, but it would probably be best to re-use the same mechanism there by adding a /relay/:id/members endpoint to the api.