mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
Merge pull request 'Reddit: unescape title' (#10) from tobtoht/feather-ws:reddit_unescape into master
Reviewed-on: https://git.wownero.com/feather/feather-ws/pulls/10
This commit is contained in:
commit
cd6224549e
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
# Copyright (c) 2020, The Monero Project.
|
# Copyright (c) 2020, The Monero Project.
|
||||||
# Copyright (c) 2020, dsc@xmr.pm
|
# Copyright (c) 2020, dsc@xmr.pm
|
||||||
|
|
||||||
|
import html
|
||||||
import settings
|
import settings
|
||||||
from fapi.utils import httpget
|
from fapi.utils import httpget
|
||||||
from fapi.tasks import FeatherTask
|
from fapi.tasks import FeatherTask
|
||||||
|
@ -45,7 +46,7 @@ class RedditTask(FeatherTask):
|
||||||
raise
|
raise
|
||||||
|
|
||||||
blob = [{
|
blob = [{
|
||||||
'title': z['data']['title'],
|
'title': html.unescape(z['data']['title']),
|
||||||
'author': z['data']['author'],
|
'author': z['data']['author'],
|
||||||
'url': "https://old.reddit.com" + z['data']['permalink'], # legacy
|
'url': "https://old.reddit.com" + z['data']['permalink'], # legacy
|
||||||
'permalink': z['data']['permalink'],
|
'permalink': z['data']['permalink'],
|
||||||
|
|
Loading…
Reference in a new issue