diff --git a/blocking.py b/blocking.py index 177ec0c00..b198cc556 100644 --- a/blocking.py +++ b/blocking.py @@ -512,6 +512,7 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int, igIt = len(itemsList) itemsList.append(newIgnore) postJsonObj['ignores']['totalItems'] = igIt + postJsonObject['muted'] = True saveJson(postJsonObject, postFilename) # remove cached post so that the muted version gets recreated @@ -594,6 +595,7 @@ def unmutePost(baseDir: str, nickname: str, domain: str, port: int, else: igItLen = len(postJsonObj['ignores']['items']) postJsonObj['ignores']['totalItems'] = igItLen + postJsonObject['muted'] = False saveJson(postJsonObject, postFilename) # remove cached post so that the muted version gets recreated