diff --git a/blocking.py b/blocking.py index 68b1e3e74..eb1c7cc7a 100644 --- a/blocking.py +++ b/blocking.py @@ -537,6 +537,8 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int, del recentPostsCache['html'][postId] print('MUTE: ' + postId + ' marked as muted in recent posts memory cache') + if recentPostsCache['html'].get(postId): + del recentPostsCache['html'][postId] def unmutePost(baseDir: str, nickname: str, domain: str, port: int, @@ -613,6 +615,8 @@ def unmutePost(baseDir: str, nickname: str, domain: str, port: int, del recentPostsCache['html'][postId] print('UNMUTE: ' + postId + ' marked as unmuted in recent posts cache') + if recentPostsCache['html'].get(postId): + del recentPostsCache['html'][postId] def outboxMute(baseDir: str, httpPrefix: str,