fix last commit

master
Aevann 2024-06-16 21:23:18 +03:00
parent 7784e6762e
commit f87e6a48e1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ from files.__main__ import app, cache, limiter
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
def rdrama(id, path):
id = ''.join(f'{x}/' for x in id)
title = path.rsplit("/", 1)[0].replace('/', '')
title = path.split("/")[0]
return redirect(f'/archives/drama/comments/{id}{title}.html')
@app.get("/r/<subreddit>")