Use old.reddit.com.

This commit is contained in:
voussoir 2021-11-04 16:37:42 -07:00
parent e8107d9678
commit 925d6d587f
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -249,7 +249,7 @@ def html_helper_permalink(item):
''' '''
Given a submission or a comment, return the URL for its permalink. Given a submission or a comment, return the URL for its permalink.
''' '''
link = 'https://www.reddit.com/r/%s/comments/' % item.subreddit link = 'https://old.reddit.com/r/%s/comments/' % item.subreddit
if item.object_type == 'submission': if item.object_type == 'submission':
link += item.idstr[3:] link += item.idstr[3:]
elif item.object_type == 'comment': elif item.object_type == 'comment':
@ -277,7 +277,7 @@ def html_helper_userlink(item):
name = item.author name = item.author
if name.lower() == '[deleted]': if name.lower() == '[deleted]':
return '[deleted]' return '[deleted]'
link = 'https://www.reddit.com/u/{name}' link = 'https://old.reddit.com/u/{name}'
link = '<a href="%s">{name}</a>' % link link = '<a href="%s">{name}</a>' % link
link = link.format(name=name) link = link.format(name=name)
return link return link