mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Pages: Disable 'approve' button for spam accounts
This commit is contained in:
@@ -2105,6 +2105,7 @@ class ApiController(RedditController, OAuth2ResourceController):
|
||||
"""
|
||||
if not thing: return
|
||||
if thing._deleted: return
|
||||
if c.user._spam: return
|
||||
kw = {'target': thing}
|
||||
if thing._spam:
|
||||
kw['details'] = 'unspam'
|
||||
|
||||
Reference in New Issue
Block a user