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: debug: bool) -> None:
""" Mutes the given post """ Mutes the given post
""" """
print('mutePost: postId ' + postId)
postFilename = locatePost(baseDir, nickname, domain, postId) postFilename = locatePost(baseDir, nickname, domain, postId)
if not postFilename: if not postFilename:
print('mutePost: file not found ' + postId)
return return
postJsonObject = loadJson(postFilename) postJsonObject = loadJson(postFilename)
if not postJsonObject: if not postJsonObject:
print('mutePost: object not loaded ' + postId)
return return
print('mutePost: ' + str(postJsonObject)) print('mutePost: ' + str(postJsonObject))