This commit is contained in:
Aevann1 2022-04-10 02:11:06 +02:00
parent 7bbc1d75ab
commit 08203a791d
3 changed files with 11 additions and 7 deletions

View file

@ -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/<sub>/submit")