Check announce cache for mutes

merge-requests/6/head
Bob Mottram 2019-12-01 14:09:45 +00:00
parent fc364b68d9
commit 9c9fb02b41
1 changed files with 3 additions and 0 deletions

View File

@ -2003,6 +2003,9 @@ def postIsMuted(baseDir: str,nickname: str,domain: str, messageId: str) -> bool:
if os.path.isfile(muteFilename): if os.path.isfile(muteFilename):
return True return True
muteFilename=postDir+'/outbox/'+messageId.replace('/','#')+'.json.muted' muteFilename=postDir+'/outbox/'+messageId.replace('/','#')+'.json.muted'
if os.path.isfile(muteFilename):
return True
muteFilename=baseDir+'/accounts/cache/announce/'+nickname+'/'+messageId.replace('/','#')+'.json.muted'
if os.path.isfile(muteFilename): if os.path.isfile(muteFilename):
return True return True
return False return False