Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
BlockedSubredditsByAccount: fix is_blocked method.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 committed Oct 1, 2014
1 parent 0063ea6 commit df77799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r2/r2/models/account.py
Expand Up @@ -946,10 +946,10 @@ def unblock(cls, user, sr):
@classmethod
def is_blocked(cls, user, sr):
try:
r = cls.fast_query(user, sr)
r = cls.fast_query(user, [sr])
except tdb_cassandra.NotFound:
return False
return True
return (user, sr) in r


@trylater_hooks.on("trylater.account_deletion")
Expand Down

0 comments on commit df77799

Please sign in to comment.