From bd4db02b3a0f18e8a8aa55798352c956ceb1d2a6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Oct 2020 12:58:48 +0100 Subject: [PATCH] Link style --- newsdaemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newsdaemon.py b/newsdaemon.py index c71e9da1..3187fa00 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -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,