Created
March 19, 2013 16:35
-
-
Save bsimpson63/5197685 to your computer and use it in GitHub Desktop.
This file contains 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
def keep_fn(self): | |
def keep(item): | |
return (not item._spam or | |
(c.user_is_loggedin and | |
(item.author_id == c.user._id or | |
c.user_is_admin or | |
item.subreddit.is_moderator(c.user)))) | |
return keep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment