momentum-mod / website

Momentum Mod's main website.
https://momentum-mod.org
MIT License
55 stars 60 forks source link

You can follow yourself #892

Closed tsa96 closed 5 months ago

tsa96 commented 5 months ago

Both the front and backend allow hitting the "follow" button on your own profile, and it really creates a follow from you to yourself.

I think this must have been something I did when refactoring the frontend, on the live frontend the button doesn't show up.

On the frontend, put a check on the profile page to not show the follow component if you're on your own profile. On the backend, put an explicit check in place (followeeID !== followedID or similar) and write an E2E test for it.