From 135ff3c2e145a1c5e36c064411e7ec73b508f6bd Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 30 Dec 2020 08:25:47 +0100 Subject: [PATCH] Reddit: unescape title --- fapi/tasks/reddit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fapi/tasks/reddit.py b/fapi/tasks/reddit.py index e09b1f8..1728a3c 100644 --- a/fapi/tasks/reddit.py +++ b/fapi/tasks/reddit.py @@ -2,6 +2,7 @@ # Copyright (c) 2020, The Monero Project. # Copyright (c) 2020, dsc@xmr.pm +import html import settings from fapi.utils import httpget from fapi.tasks import FeatherTask @@ -45,7 +46,7 @@ class RedditTask(FeatherTask): raise blob = [{ - 'title': z['data']['title'], + 'title': html.unescape(z['data']['title']), 'author': z['data']['author'], 'url': "https://old.reddit.com" + z['data']['permalink'], # legacy 'permalink': z['data']['permalink'],