forked from MarseyWorld/MarseyWorld
minor syntax change
parent
6ade4f2093
commit
fe5acdddd9
|
@ -469,8 +469,7 @@ def submit_post(v, sub=None):
|
|||
url = normalize_url(url)
|
||||
|
||||
if v.admin_level < PERMS["IGNORE_DOMAIN_BAN"]:
|
||||
banned_domains = g.db.query(BannedDomain).all()
|
||||
for x in banned_domains:
|
||||
for x in g.db.query(BannedDomain).all():
|
||||
if url.startswith(x.domain):
|
||||
abort(400, f'Remove the banned link "{x.domain}" and try again!\nReason for link ban: "{x.reason}"')
|
||||
|
||||
|
|
Loading…
Reference in New Issue