mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-18 02:11:32 -05:00
is_shamed_domain: remove ip argument.
This commit is contained in:
committed by
Neil Williams
parent
b2d5689267
commit
0d92e51108
@@ -109,7 +109,7 @@ class ToolbarController(RedditController):
|
||||
return self.redirect(link.make_permalink_slow(force_domain=True))
|
||||
|
||||
# if the domain is shame-banned, bail out.
|
||||
if is_shamed_domain(link.url, request.ip)[0]:
|
||||
if is_shamed_domain(link.url)[0]:
|
||||
self.abort404()
|
||||
|
||||
if not link.subreddit_slow.can_view(c.user):
|
||||
@@ -137,7 +137,7 @@ class ToolbarController(RedditController):
|
||||
self.abort404()
|
||||
|
||||
# if the domain is shame-banned, bail out.
|
||||
if is_shamed_domain(path, request.ip)[0]:
|
||||
if is_shamed_domain(path)[0]:
|
||||
self.abort404()
|
||||
|
||||
link = utils.link_from_url(path, multiple = False)
|
||||
|
||||
@@ -1211,7 +1211,7 @@ class VShamedDomain(Validator):
|
||||
if not url:
|
||||
return
|
||||
|
||||
is_shamed, domain, reason = is_shamed_domain(url, request.ip)
|
||||
is_shamed, domain, reason = is_shamed_domain(url)
|
||||
|
||||
if is_shamed:
|
||||
self.set_error(errors.DOMAIN_BANNED, dict(domain=domain,
|
||||
|
||||
@@ -311,7 +311,7 @@ def is_banned_IP(ip):
|
||||
def is_banned_domain(dom):
|
||||
return None
|
||||
|
||||
def is_shamed_domain(dom, ip):
|
||||
def is_shamed_domain(dom):
|
||||
return False, None, None
|
||||
|
||||
def valid_thing(v, karma, *a, **kw):
|
||||
|
||||
Reference in New Issue
Block a user