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)
|
recentPostsCache['json'][postId] = json.dumps(postJsonObject)
|
||||||
print('MUTE: ' + postId +
|
print('MUTE: ' + postId +
|
||||||
' marked as muted in recent posts memory cache')
|
' marked as muted in recent posts memory cache')
|
||||||
if recentPostsCache.get('html'):
|
if recentPostsCache.get('html'):
|
||||||
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')
|
||||||
|
|
||||||
|
|
||||||
def unmutePost(baseDir: str, nickname: str, domain: str, port: int,
|
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)
|
recentPostsCache['json'][postId] = json.dumps(postJsonObject)
|
||||||
print('UNMUTE: ' + postId +
|
print('UNMUTE: ' + postId +
|
||||||
' marked as unmuted in recent posts cache')
|
' marked as unmuted in recent posts cache')
|
||||||
if recentPostsCache.get('html'):
|
if recentPostsCache.get('html'):
|
||||||
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')
|
||||||
|
|
||||||
|
|
||||||
def outboxMute(baseDir: str, httpPrefix: str,
|
def outboxMute(baseDir: str, httpPrefix: str,
|
||||||
|
|
Loading…
Reference in New Issue