Set rss summary

main
Bob Mottram 2020-10-10 11:24:40 +01:00
parent 5476cb1601
commit eceb96ec49
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
if rssDescription.startswith('<![CDATA['):
rssDescription = rssDescription.replace('<![CDATA[', '')
rssDescription = rssDescription.replace(']]>', '')
print('rssDescription: ' + rssDescription)
rssDescription = '<p>' + rssDescription + '<p>'
# add the off-site link to the description
if rssDescription:
@ -146,6 +146,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
blog['object']['url'] = \
httpPrefix + '://' + domain + '/@news/' + statusNumber
blog['object']['published'] = dateStr
blog['object']['summary'] = rssTitle
blog['object']['content'] = rssDescription
postId = newPostId.replace('/', '#')