From 98b0b16f5a5e4bf234b3295d0da65e999f886d44 Mon Sep 17 00:00:00 2001 From: pluja Date: Sun, 1 Nov 2020 22:35:56 +0100 Subject: [PATCH] Fix error with twitter Provoked by previous commit --- app/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 31367da..7dc24a0 100644 --- a/app/routes.py +++ b/app/routes.py @@ -871,7 +871,8 @@ def getFeed(urls): newPost["twitterName"] = post.find('a', attrs={'class': 'fullname'}).text newPost["timeStamp"] = date_time_str newPost["date"] = post.find('span', attrs={'class': 'tweet-date'}).find('a').text - newPost["content"] = Markup(post.find('div', attrs={'class': 'tweet-content'}).replace("\n", "
")) + content=post.find('div', attrs={'class': 'tweet-content'}) + newPost["content"] = Markup(str(content).replace("\n", "
")) if post.find('div', attrs={'class': 'retweet-header'}): newPost["username"] = post.find('div', attrs={'class': 'retweet-header'}).find('div', attrs={