This commit is contained in:
Aevann1 2022-02-03 08:39:02 +02:00
parent f0580c3a9e
commit c2beea12ef
32 changed files with 294 additions and 274 deletions

View file

@ -822,6 +822,7 @@ def submit_post(v):
if repost: return redirect(repost.permalink)
domain_obj = get_domain(domain)
if not domain_obj: domain_obj = get_domain(domain+parsed_url.path)
if domain_obj:
reason = f"Remove the {domain_obj.domain} link from your post and try again. {domain_obj.reason}"
if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error":reason}, 400