This change prevents a user from following themself by both removing the "Follow" button from the profile view for the logged in user and by checking that target and logged in user are not the same in the follow API.
Closes #892
I simply removed the follow button component when viewing the logged in user's profile as this is not a bug in production so there should not be a risk of real users having following themself. If desired I can rework this to remove only the "Follow" button leave the "Unfollow" button.
This change prevents a user from following themself by both removing the "Follow" button from the profile view for the logged in user and by checking that target and logged in user are not the same in the follow API.
Closes #892
I simply removed the follow button component when viewing the logged in user's profile as this is not a bug in production so there should not be a risk of real users having following themself. If desired I can rework this to remove only the "Follow" button leave the "Unfollow" button.