mirror of https://gitlab.com/bashrc2/epicyon
Link style
parent
5ad810e694
commit
bd4db02b3a
|
@ -72,8 +72,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
baseDir + '/accounts/news@' + domain + \
|
baseDir + '/accounts/news@' + domain + \
|
||||||
'/postcache/' + newPostId.replace('/', '#') + '.html'
|
'/postcache/' + newPostId.replace('/', '#') + '.html'
|
||||||
if os.path.isfile(htmlFilename):
|
if os.path.isfile(htmlFilename):
|
||||||
newswire[originalDateStr][1] = \
|
newswire[originalDateStr][1] = '/@news/' + statusNumber
|
||||||
'/users/news/statuses/' + statusNumber
|
|
||||||
# don't create the post if it already exists
|
# don't create the post if it already exists
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -121,6 +120,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||||
# save the post and update the index
|
# save the post and update the index
|
||||||
if saveJson(blog, filename):
|
if saveJson(blog, filename):
|
||||||
updateFeedsIndex(baseDir, domain, postId + '.json')
|
updateFeedsIndex(baseDir, domain, postId + '.json')
|
||||||
|
newswire[originalDateStr][1] = '/@news/' + statusNumber
|
||||||
|
|
||||||
|
|
||||||
def runNewswireDaemon(baseDir: str, httpd,
|
def runNewswireDaemon(baseDir: str, httpd,
|
||||||
|
|
Loading…
Reference in New Issue