main
Bob Mottram 2019-12-01 14:12:29 +00:00
parent 9c9fb02b41
commit 7bbd67bc9d
1 changed files with 3 additions and 0 deletions

View File

@ -2000,12 +2000,15 @@ def postIsMuted(baseDir: str,nickname: str,domain: str, messageId: str) -> bool:
"""
postDir=baseDir+'/accounts/'+nickname+'@'+domain
muteFilename=postDir+'/inbox/'+messageId.replace('/','#')+'.json.muted'
print('TEST MUTE: '+muteFilename)
if os.path.isfile(muteFilename):
return True
muteFilename=postDir+'/outbox/'+messageId.replace('/','#')+'.json.muted'
print('TEST MUTE: '+muteFilename)
if os.path.isfile(muteFilename):
return True
muteFilename=baseDir+'/accounts/cache/announce/'+nickname+'/'+messageId.replace('/','#')+'.json.muted'
print('TEST MUTE: '+muteFilename)
if os.path.isfile(muteFilename):
return True
return False