mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Don't update cached queries on POST_approve confirm_ham.
This commit is contained in:
committed by
Neil Williams
parent
56d2eb2f8f
commit
f2384d0257
@@ -1549,11 +1549,14 @@ class ApiController(RedditController):
|
||||
if thing._spam:
|
||||
kw['details'] = 'unspam'
|
||||
train_spam = True
|
||||
insert = True
|
||||
else:
|
||||
kw['details'] = 'confirm_ham'
|
||||
train_spam = False
|
||||
insert = False
|
||||
|
||||
admintools.unspam(thing, c.user.name, train_spam=train_spam)
|
||||
admintools.unspam(thing, c.user.name, train_spam=train_spam,
|
||||
insert=insert)
|
||||
|
||||
if isinstance(thing, (Link, Comment)):
|
||||
sr = thing.subreddit_slow
|
||||
|
||||
Reference in New Issue
Block a user