forked from MarseyWorld/MarseyWorld
master
parent
4de753e056
commit
10269229bd
|
@ -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)
|
||||
|
|
|
@ -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" %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue