Skip to content

Commit c9dbc49

Browse files
committed
Delete muted content
1 parent 90de9c6 commit c9dbc49

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/ContentFilter/ContentFilterPlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def cbMuteAdd(self, to, auth_address, cert_user_id, reason):
5858
def actionMuteAdd(self, to, auth_address, cert_user_id, reason):
5959
self.cmd(
6060
"prompt",
61-
[_["Hide all content from <b>%s</b>?"] % html.escape(cert_user_id), reason, _["Mute"]],
61+
[_["Remove all content from <b>%s</b>?"] % html.escape(cert_user_id), reason, _["Mute"]],
6262
lambda res: self.cbMuteAdd(to, auth_address, cert_user_id, res if res else reason)
6363
)
6464

plugins/ContentFilter/ContentFilterStorage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def changeDbs(self, auth_address, action):
158158
dir_inner_path = helper.getDirname(row["inner_path"])
159159
for file_name in site.storage.walk(dir_inner_path):
160160
if action == "remove":
161-
site.storage.onUpdated(dir_inner_path + file_name, False)
161+
site.storage.delete(dir_inner_path + file_name)
162162
else:
163163
site.storage.onUpdated(dir_inner_path + file_name)
164164
site.onFileDone(dir_inner_path + file_name)

0 commit comments

Comments
 (0)