DRY; combine the two functions and use a boolean flag to indicate whether it's a follow or an unfollow.