mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Domain ban: Use new form of is_banned_domain
This commit is contained in:
@@ -353,8 +353,7 @@ class ApiController(RedditController, OAuth2ResourceController):
|
||||
g.log.warning("%s is trying to submit url=None (title: %r)"
|
||||
% (request.ip, title))
|
||||
elif check_domain:
|
||||
|
||||
banmsg = is_banned_domain(url, request.ip)
|
||||
banmsg = is_banned_domain(url)
|
||||
else:
|
||||
form.has_errors('text', errors.TOO_LONG)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user