Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
74 stars 32 forks source link

Add an admin option to hide invite code relationships from users #312

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

If a user gives out an invite code using another social media account, and the recipient registers using it, then the recipient will be able to see the account name of the user who invited them, so they will know that the two accounts are the same person. This may not be what the person giving out the invite code desires. Similarly the recipient's newly registered username will be visible to the invite code donor, which may not be what they expect either.

This change gives the admin the option of protecting user privacy by hiding invite code relationships from the users who are part of them. Admins will still be able to view the relationships on the user profile pages, and users can still see if their codes have been used or not on their invite code page.

The default is to hide the relationships, so that new installations will default to having more privacy protection. Admins of existing installations will have to turn invite code relationship display back on using the admin invite code page if they want to keep invite code relationships visible to users.