mirror of https://gitlab.com/bashrc2/epicyon
Remove html even if post is not in index
parent
de23673fa2
commit
1bb2bf9cc9
16
blocking.py
16
blocking.py
|
@ -534,10 +534,10 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int,
|
|||
recentPostsCache['json'][postId] = json.dumps(postJsonObject)
|
||||
print('MUTE: ' + postId +
|
||||
' marked as muted in recent posts memory cache')
|
||||
if recentPostsCache.get('html'):
|
||||
if recentPostsCache['html'].get(postId):
|
||||
del recentPostsCache['html'][postId]
|
||||
print('MUTE: ' + postId + ' removed cached html')
|
||||
if recentPostsCache.get('html'):
|
||||
if recentPostsCache['html'].get(postId):
|
||||
del recentPostsCache['html'][postId]
|
||||
print('MUTE: ' + postId + ' removed cached html')
|
||||
|
||||
|
||||
def unmutePost(baseDir: str, nickname: str, domain: str, port: int,
|
||||
|
@ -611,10 +611,10 @@ def unmutePost(baseDir: str, nickname: str, domain: str, port: int,
|
|||
recentPostsCache['json'][postId] = json.dumps(postJsonObject)
|
||||
print('UNMUTE: ' + postId +
|
||||
' marked as unmuted in recent posts cache')
|
||||
if recentPostsCache.get('html'):
|
||||
if recentPostsCache['html'].get(postId):
|
||||
del recentPostsCache['html'][postId]
|
||||
print('UNMUTE: ' + postId + ' removed cached html')
|
||||
if recentPostsCache.get('html'):
|
||||
if recentPostsCache['html'].get(postId):
|
||||
del recentPostsCache['html'][postId]
|
||||
print('UNMUTE: ' + postId + ' removed cached html')
|
||||
|
||||
|
||||
def outboxMute(baseDir: str, httpPrefix: str,
|
||||
|
|
Loading…
Reference in New Issue