forked from rDrama/rDrama
fix last commit (i cant do this without coffee help me)
parent
b6c45c4208
commit
c0d91c9e71
|
@ -28,7 +28,7 @@ def subreddit(subreddit, v):
|
||||||
reddit = v.reddit if v else "old.reddit.com"
|
reddit = v.reddit if v else "old.reddit.com"
|
||||||
return redirect(f'https://{reddit}/r/{subreddit}')
|
return redirect(f'https://{reddit}/r/{subreddit}')
|
||||||
|
|
||||||
@app.get("/archives/<subreddit>/comments/<path:path>")
|
@app.get("/reddit/<subreddit>/comments/<path:path>")
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def reddit_post(subreddit, v, path):
|
def reddit_post(subreddit, v, path):
|
||||||
post_id = path.rsplit("/", 1)[0].replace('/', '')
|
post_id = path.rsplit("/", 1)[0].replace('/', '')
|
||||||
|
|
Loading…
Reference in New Issue