From 2bdbb82e738a28709e758853cefb95b21abbf8d1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Oct 2020 10:44:26 +0100 Subject: [PATCH] Set content for rss posts --- newsdaemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/newsdaemon.py b/newsdaemon.py index 8cb2d697a..0a57c1afe 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -103,9 +103,9 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, # add the off-site link to the description if rssDescription: rssDescription += \ - '\n\n' + translate['Read more...'] + '\n' + url + '

' + translate['Read more...'] + '
' + url else: - rssDescription = translate['Read more...'] + '\n' + url + rssDescription = translate['Read more...'] + '
' + url followersOnly = False useBlurhash = False @@ -139,6 +139,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, blog['object']['url'] = \ httpPrefix + '://' + domain + '/@news/' + statusNumber blog['object']['published'] = dateStr + blog['object']['content'] = rssDescription postId = newPostId.replace('/', '#')