- commit
- bda5b3c1188cdce1e41df21da8e6580a82658c3b
- parent
- e922d9ffd5333273fded38e3457dd25010331f09
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-08-13 07:02
adapt to reddit api changes
Diffstat
M | neddit.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/neddit.py b/neddit.py
@@ -84,7 +84,7 @@ def generic(path): 84 84 subreddit = path.split('/')[1] 85 85 context['subreddit'] = fetch_subreddit(subreddit) 86 8687 -1 a = fetch('https://www.reddit.com/%s.json' % path, **request.args)-1 87 a = fetch('https://www.reddit.com/%s/.json' % path, **request.args) 88 88 if isinstance(a, list): 89 89 tpl = env.get_template('comments.html') 90 90 context['post'] = a[0]['data']['children'][0]