Timeouts: Fix error in POST_comment.

This commit is contained in:
Matt Lee
2015-10-09 14:01:24 -07:00
committed by xiongchiamiov
parent 1059adf3b1
commit 08cdcb58f6

View File

@@ -2047,7 +2047,7 @@ class ApiController(RedditController):
to = Account._byID(parent.author_id)
# Only let users in timeout message the admins
if (to and not (is_subreddit and
if (to and not (isinstance(to, Subreddit) and
'/r/%s' % to.name == g.admin_message_acct)):
VNotInTimeout().run(action_name='message_reply', target=to)