Remove muted json

merge-requests/30/head
Bob Mottram 2021-09-27 21:06:03 +01:00
parent 1bb2bf9cc9
commit 9b21ee570b
1 changed files with 8 additions and 0 deletions

View File

@ -538,6 +538,10 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int,
if recentPostsCache['html'].get(postId):
del recentPostsCache['html'][postId]
print('MUTE: ' + postId + ' removed cached html')
if recentPostsCache.get('json'):
if recentPostsCache['json'].get(postId):
del recentPostsCache['json'][postId]
print('MUTE: ' + postId + ' removed cached json')
def unmutePost(baseDir: str, nickname: str, domain: str, port: int,
@ -615,6 +619,10 @@ def unmutePost(baseDir: str, nickname: str, domain: str, port: int,
if recentPostsCache['html'].get(postId):
del recentPostsCache['html'][postId]
print('UNMUTE: ' + postId + ' removed cached html')
if recentPostsCache.get('json'):
if recentPostsCache['json'].get(postId):
del recentPostsCache['json'][postId]
print('UNMUTE: ' + postId + ' removed cached json')
def outboxMute(baseDir: str, httpPrefix: str,