friendRepository.addFriend(currentUser.getLogin(), followedUser.getLogin());
counterRepository.incrementFriendsCounter(currentUser.getLogin());
followerRepository.addFollower(followedUser.getLogin(), currentUser.getLogin());
counterRepository.incrementFollowersCounter(followedUser.getLogin());
// mention the friend that the user has started following him
MentionFriend mentionFriend = statusRepository.createMentionFriend(followedUser.getLogin(), currentUser.getLogin());
mentionlineRepository.addStatusToMentionline(mentionFriend.getLogin(), mentionFriend.getStatusId());
log.debug("User {} now follows user {} ", currentUser.getLogin(), followedUser.getLogin());
return true;
} else {
log.debug("Followed user does not exist : " + loginToFollow);
return false;