Locate news posts

merge-requests/8/head
Bob Mottram 2020-10-08 14:07:17 +01:00
parent e465b91647
commit b07ce27a03
1 changed files with 6 additions and 0 deletions

View File

@ -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):