From 9c9fb02b4191dcd024f2e63003d4579485c1c910 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Dec 2019 14:09:45 +0000 Subject: [PATCH] Check announce cache for mutes --- webinterface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webinterface.py b/webinterface.py index a6ebe5c10..55afc0710 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2003,6 +2003,9 @@ def postIsMuted(baseDir: str,nickname: str,domain: str, messageId: str) -> bool: if os.path.isfile(muteFilename): return True 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): return True return False