mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
9b21ee570b
commit
f589b31818
|
@ -467,6 +467,7 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
postJsonObject = loadJson(postFilename)
|
postJsonObject = loadJson(postFilename)
|
||||||
if not postJsonObject:
|
if not postJsonObject:
|
||||||
return
|
return
|
||||||
|
print('mutePost: ' + str(postJsonObject))
|
||||||
|
|
||||||
if hasObjectDict(postJsonObject):
|
if hasObjectDict(postJsonObject):
|
||||||
domainFull = getFullDomain(domain, port)
|
domainFull = getFullDomain(domain, port)
|
||||||
|
@ -538,10 +539,6 @@ 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,
|
||||||
|
@ -619,10 +616,6 @@ 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