remotes/1693045480750635534/spooky-22
Aevann1 2021-09-03 15:52:37 +02:00
parent 6447384265
commit 1904bcf272
3 changed files with 3 additions and 5 deletions

View File

@ -130,8 +130,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
output = '-'.join(output)
if not output:
output = '-'
if not output: output = '-'
return f"/post/{self.id}/{output}"

View File

@ -77,7 +77,6 @@ def remove_report(report_fn, v):
else:
return {"error": "Invalid report ID"}, 400
_response = f"Removed @{report.user.username}'s report"
g.db.delete(report)
return {"message": _response}, 200
return {"message": "Removed report"}

View File

@ -367,7 +367,7 @@ def random_post(v):
n = random.randint(0, total - 1)
post = x.offset(n).limit(1).first()
return redirect(post.permalink)
return redirect(f"/post/{post.id}")
@cache.memoize(timeout=86400)
def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all", **kwargs):