mirror of https://gitlab.com/bashrc2/epicyon
Update hashtags after processing
parent
a9c07065a0
commit
006908c30c
|
@ -596,6 +596,20 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
|||
domainFull = domain + ':' + str(port)
|
||||
|
||||
hashtags = item[6]
|
||||
|
||||
postId = newPostId.replace('/', '#')
|
||||
|
||||
moderated = item[5]
|
||||
|
||||
savePost = newswireHashtagProcessing(session, baseDir, blog, hashtags,
|
||||
httpPrefix, domain, port,
|
||||
personCache, cachedWebfingers,
|
||||
federationList,
|
||||
sendThreads, postLog,
|
||||
moderated, url)
|
||||
|
||||
# save the post and update the index
|
||||
if savePost:
|
||||
for tagName in hashtags:
|
||||
htId = tagName.replace('#', '')
|
||||
hashtagUrl = \
|
||||
|
@ -614,19 +628,6 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
|||
htId + "</span></a>"
|
||||
blog['object']['content'].replace(tagName, hashtagHtml)
|
||||
|
||||
postId = newPostId.replace('/', '#')
|
||||
|
||||
moderated = item[5]
|
||||
|
||||
savePost = newswireHashtagProcessing(session, baseDir, blog, hashtags,
|
||||
httpPrefix, domain, port,
|
||||
personCache, cachedWebfingers,
|
||||
federationList,
|
||||
sendThreads, postLog,
|
||||
moderated, url)
|
||||
|
||||
# save the post and update the index
|
||||
if savePost:
|
||||
newswire[originalDateStr][6] = hashtags
|
||||
|
||||
storeHashTags(baseDir, 'news', blog)
|
||||
|
|
Loading…
Reference in New Issue