mirror of https://gitlab.com/bashrc2/epicyon
Remove muted json
parent
1bb2bf9cc9
commit
9b21ee570b
|
@ -538,6 +538,10 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
if recentPostsCache['html'].get(postId):
|
if recentPostsCache['html'].get(postId):
|
||||||
del recentPostsCache['html'][postId]
|
del recentPostsCache['html'][postId]
|
||||||
print('MUTE: ' + postId + ' removed cached html')
|
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,
|
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):
|
if recentPostsCache['html'].get(postId):
|
||||||
del recentPostsCache['html'][postId]
|
del recentPostsCache['html'][postId]
|
||||||
print('UNMUTE: ' + postId + ' removed cached html')
|
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,
|
def outboxMute(baseDir: str, httpPrefix: str,
|
||||||
|
|
Loading…
Reference in New Issue