Permalink
Browse files

Useful keep_fn for unmoderated.

  • Loading branch information...
1 parent 0185a1f commit 3602982f349980bf22e5bfcf537a56d4b4648e9b @bsimpson63 bsimpson63 committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 r2/r2/controllers/front.py
@@ -522,7 +522,7 @@ def keep_fn(x):
return True # spam, unless banned by a moderator
return False
elif location == "unmoderated":
- return True
+ return not getattr(x, 'verdict', None)
else:
raise ValueError

0 comments on commit 3602982

Please sign in to comment.