From 10269229bdd6f1a478fe9eaddcc46c57e70fc79a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 24 Feb 2022 20:02:10 +0200 Subject: [PATCH] gf --- files/routes/posts.py | 13 ++++++------- files/templates/submit.html | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index d44a7d669..9b754de26 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -928,14 +928,13 @@ def submit_post(v, sub=None): url = urlunparse(new_url) - if SITE != 'localhost': - repost = g.db.query(Submission).filter( - Submission.url.ilike(url), - Submission.deleted_utc == 0, - Submission.is_banned == False - ).one_or_none() + repost = g.db.query(Submission).filter( + Submission.url.ilike(url), + Submission.deleted_utc == 0, + Submission.is_banned == False + ).one_or_none() - if repost: return redirect(repost.permalink) + if repost: return redirect(repost.permalink) domain_obj = get_domain(domain) if not domain_obj: domain_obj = get_domain(domain+parsed_url.path) diff --git a/files/templates/submit.html b/files/templates/submit.html index 2d33f49b0..e4945ff06 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -266,7 +266,7 @@ - + {% include "emoji_modal.html" %} {% include "gif_modal.html" %}