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.
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.