Domain ban: Use new form of is_banned_domain

This commit is contained in:
Roger Ostrander
2013-06-25 11:38:29 -07:00
parent b9ddfde0bc
commit 92c5508799

View File

@@ -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)