Link style

merge-requests/8/head
Bob Mottram 2020-10-08 12:58:48 +01:00
parent 5ad810e694
commit bd4db02b3a
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
baseDir + '/accounts/news@' + domain + \
'/postcache/' + newPostId.replace('/', '#') + '.html'
if os.path.isfile(htmlFilename):
newswire[originalDateStr][1] = \
'/users/news/statuses/' + statusNumber
newswire[originalDateStr][1] = '/@news/' + statusNumber
# don't create the post if it already exists
continue
@ -121,6 +120,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
# save the post and update the index
if saveJson(blog, filename):
updateFeedsIndex(baseDir, domain, postId + '.json')
newswire[originalDateStr][1] = '/@news/' + statusNumber
def runNewswireDaemon(baseDir: str, httpd,