merge-requests/30/head
Bob Mottram 2021-09-27 21:49:04 +01:00
parent f589b31818
commit 26430b2dfe
1 changed files with 3 additions and 0 deletions

View File

@ -461,11 +461,14 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int,
debug: bool) -> None:
""" Mutes the given post
"""
print('mutePost: postId ' + postId)
postFilename = locatePost(baseDir, nickname, domain, postId)
if not postFilename:
print('mutePost: file not found ' + postId)
return
postJsonObject = loadJson(postFilename)
if not postJsonObject:
print('mutePost: object not loaded ' + postId)
return
print('mutePost: ' + str(postJsonObject))