mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 06:18:08 -05:00
Don't use account._spam to determine access token validity.
This commit is contained in:
committed by
Neil Williams
parent
65b146772b
commit
2eb24e46ce
@@ -431,7 +431,7 @@ class OAuth2AccessToken(Token):
|
||||
# Is the user account still valid?
|
||||
try:
|
||||
account = Account._byID36(self.user_id)
|
||||
if account._deleted or account._spam:
|
||||
if account._deleted:
|
||||
raise NotFound
|
||||
except NotFound:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user