Created
June 27, 2011 17:56
-
-
Save csanz/1049373 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @return boolean | |
| User.statics.isFollowing(session, user_id) | |
| // Will check if you are already following this user | |
| // find(/username, function(user | |
| // if(user.followersContains(session.user.id) | |
| // return true | |
| @return boolean | |
| User.statics.follow(session, user_id_to_follow) | |
| // Will initiate a follow on a user and return true if no errors found | |
| @return boolean | |
| User.statics.unFollow(session, user_id_to_unfollow) | |
| // Will stop following a given user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment