forked from indymedia/epicyon
Set content for rss posts
parent
c2832c0e5e
commit
2bdbb82e73
|
@ -103,9 +103,9 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
# add the off-site link to the description
|
# add the off-site link to the description
|
||||||
if rssDescription:
|
if rssDescription:
|
||||||
rssDescription += \
|
rssDescription += \
|
||||||
'\n\n' + translate['Read more...'] + '\n' + url
|
'<br><br>' + translate['Read more...'] + '<br>' + url
|
||||||
else:
|
else:
|
||||||
rssDescription = translate['Read more...'] + '\n' + url
|
rssDescription = translate['Read more...'] + '<br>' + url
|
||||||
|
|
||||||
followersOnly = False
|
followersOnly = False
|
||||||
useBlurhash = False
|
useBlurhash = False
|
||||||
|
@ -139,6 +139,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']['content'] = rssDescription
|
||||||
|
|
||||||
postId = newPostId.replace('/', '#')
|
postId = newPostId.replace('/', '#')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue