Remove html for muted posts

merge-requests/30/head
Bob Mottram 2021-09-27 20:34:32 +01:00
parent 4189bdff0b
commit a15e905052
1 changed files with 4 additions and 0 deletions

View File

@ -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,