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" %}