main
Bob Mottram 2019-12-01 14:03:18 +00:00
parent 2c05fbc669
commit fc364b68d9
1 changed files with 5 additions and 2 deletions

View File

@ -2649,7 +2649,9 @@ def mutePost(baseDir: str,nickname: str,domain: str,postId: str, \
if not postJsonObject:
return
print('MUTE: '+postFilename)
muteFile=open(postFilename+'.muted', "w")
if muteFile:
muteFile.write('\n')
muteFile.close()
@ -2672,6 +2674,7 @@ def unmutePost(baseDir: str,nickname: str,domain: str,postId: str, \
if not postJsonObject:
return
print('UNMUTE: '+postFilename)
muteFilename=postFilename+'.muted'
if os.path.isfile(muteFilename):
os.remove(muteFilename)