mbeps / next_discussion_platform

Full Stack Website for Forum Discussion Platform using Next.JS and Firebase
https://circus-discussion.vercel.app
MIT License
54 stars 16 forks source link

FEATURE: Complete the community privacy #74

Open mbeps opened 1 year ago

mbeps commented 1 year ago

Is your feature request related to a problem? Please describe.

Implement community privacy functionality:

Describe the solution you'd like

Describe alternatives you've considered

Remove community privacy all together

Importance

mbeps commented 1 year ago

This feature seems simple to implement in principle but it's actually pretty difficult.

If the user tries to go to a private community, they would be told that the community is private and do not have access to it Private communities are not discoverable on the all communities page Users can navigate to restricted communities however they cannot post

These are easy to implement but how would a user gain access to a private community? Are there checks for subscribing to restricted communities?

mbeps commented 1 year ago

Allowing the admin of a community seems to be a sensible choice until you realise that the community does not know what users are subscribed to it, but the users know what communities they are subscribed to. This means that the subscribers must be queried first which is a tedious task on a non-relational database. This is possible but not ideal due to the limitations of the database design.