mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
2c05fbc669
commit
fc364b68d9
7
posts.py
7
posts.py
|
@ -2649,9 +2649,11 @@ def mutePost(baseDir: str,nickname: str,domain: str,postId: str, \
|
||||||
if not postJsonObject:
|
if not postJsonObject:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print('MUTE: '+postFilename)
|
||||||
muteFile=open(postFilename+'.muted', "w")
|
muteFile=open(postFilename+'.muted', "w")
|
||||||
muteFile.write('\n')
|
if muteFile:
|
||||||
muteFile.close()
|
muteFile.write('\n')
|
||||||
|
muteFile.close()
|
||||||
|
|
||||||
# remove cached posts so that the muted version gets created
|
# remove cached posts so that the muted version gets created
|
||||||
cachedPostFilename= \
|
cachedPostFilename= \
|
||||||
|
@ -2672,6 +2674,7 @@ def unmutePost(baseDir: str,nickname: str,domain: str,postId: str, \
|
||||||
if not postJsonObject:
|
if not postJsonObject:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print('UNMUTE: '+postFilename)
|
||||||
muteFilename=postFilename+'.muted'
|
muteFilename=postFilename+'.muted'
|
||||||
if os.path.isfile(muteFilename):
|
if os.path.isfile(muteFilename):
|
||||||
os.remove(muteFilename)
|
os.remove(muteFilename)
|
||||||
|
|
Loading…
Reference in New Issue