Reddit: add permalink

This commit is contained in:
tobtoht 2020-12-29 20:25:04 +01:00
parent d127825a70
commit f4aa1227ea
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -47,7 +47,8 @@ class RedditTask(FeatherTask):
blob = [{
'title': z['data']['title'],
'author': z['data']['author'],
'url': "https://old.reddit.com" + z['data']['permalink'],
'url': "https://old.reddit.com" + z['data']['permalink'], # legacy
'permalink': z['data']['permalink'],
'comments': z['data']['num_comments']
} for z in blob['data']['children']]
if not blob: