From a334aa815e4ccd8fd156ad7ee1de15d220c714c3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 10 Apr 2022 02:11:06 +0200 Subject: [PATCH] fsd --- files/routes/posts.py | 4 ++-- files/templates/submit.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index b72d319a4..82ca9d5f6 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -854,8 +854,8 @@ def api_is_repost(): Submission.deleted_utc == 0, Submission.is_banned == False ).first() - if repost: return repost.permalink - else: return '' + if repost: return {'permalink': repost.permalink} + else: return {'permalink': ''} @app.post("/submit") @app.post("/h//submit") diff --git a/files/templates/submit.html b/files/templates/submit.html index fec53ebbd..0c53d1c96 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -268,7 +268,7 @@ - + {% include "emoji_modal.html" %} {% include "gif_modal.html" %}