In this small example it doesn't, getFriendsById however, does. I would imagine that wtfFriendAction could be used multiple places though.
wtfFriendAction is additionally a very, very poor name. It should be called "addFriendToFriendList" or something. Another thing is that the author himself states that the function doesn't actually makes sence, hence the ugly name.