From b07ce27a03b00da46d88e57fc0021be982c56213 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Oct 2020 14:07:17 +0100 Subject: [PATCH] Locate news posts --- utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils.py b/utils.py index 74f58ba52..e91091d6a 100644 --- a/utils.py +++ b/utils.py @@ -523,6 +523,12 @@ def locatePost(baseDir: str, nickname: str, domain: str, if os.path.isfile(postFilename): return postFilename + # check news posts + accountDir = baseDir + '/accounts/news' + '@' + domain + '/' + postFilename = accountDir + boxName + '/' + postUrl + if os.path.isfile(postFilename): + return postFilename + # is it in the announce cache? postFilename = baseDir + '/cache/announce/' + nickname + '/' + postUrl if os.path.isfile(postFilename):