forked from indymedia/epicyon
Set rss summary
parent
5476cb1601
commit
eceb96ec49
|
@ -102,7 +102,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
if rssDescription.startswith('<![CDATA['):
|
if rssDescription.startswith('<![CDATA['):
|
||||||
rssDescription = rssDescription.replace('<![CDATA[', '')
|
rssDescription = rssDescription.replace('<![CDATA[', '')
|
||||||
rssDescription = rssDescription.replace(']]>', '')
|
rssDescription = rssDescription.replace(']]>', '')
|
||||||
print('rssDescription: ' + rssDescription)
|
rssDescription = '<p>' + rssDescription + '<p>'
|
||||||
|
|
||||||
# add the off-site link to the description
|
# add the off-site link to the description
|
||||||
if rssDescription:
|
if rssDescription:
|
||||||
|
@ -146,6 +146,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
blog['object']['url'] = \
|
blog['object']['url'] = \
|
||||||
httpPrefix + '://' + domain + '/@news/' + statusNumber
|
httpPrefix + '://' + domain + '/@news/' + statusNumber
|
||||||
blog['object']['published'] = dateStr
|
blog['object']['published'] = dateStr
|
||||||
|
blog['object']['summary'] = rssTitle
|
||||||
blog['object']['content'] = rssDescription
|
blog['object']['content'] = rssDescription
|
||||||
|
|
||||||
postId = newPostId.replace('/', '#')
|
postId = newPostId.replace('/', '#')
|
||||||
|
|
Loading…
Reference in New Issue