From 925d6d587fd148364cd8fcbd685049abfc35b9d1 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 4 Nov 2021 16:37:42 -0700 Subject: [PATCH] Use old.reddit.com. --- timesearch_modules/offline_reading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timesearch_modules/offline_reading.py b/timesearch_modules/offline_reading.py index fd71667..ddbcbed 100644 --- a/timesearch_modules/offline_reading.py +++ b/timesearch_modules/offline_reading.py @@ -249,7 +249,7 @@ def html_helper_permalink(item): ''' 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': link += item.idstr[3:] elif item.object_type == 'comment': @@ -277,7 +277,7 @@ def html_helper_userlink(item): name = item.author if name.lower() == '[deleted]': return '[deleted]' - link = 'https://www.reddit.com/u/{name}' + link = 'https://old.reddit.com/u/{name}' link = '{name}' % link link = link.format(name=name) return link