master
Aevann1 2022-02-24 20:02:10 +02:00
parent 4de753e056
commit 10269229bd
2 changed files with 7 additions and 8 deletions

View File

@ -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)

View File

@ -266,7 +266,7 @@
<script src="/static/assets/js/marked.js?a=242"></script>
<script src="/static/assets/js/formatting.js?a=240"></script>
<script src="/static/assets/js/submit.js?a=247"></script>
<script src="/static/assets/js/submit.js?a=248"></script>
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}