Delete muted content
This commit is contained in:
parent
90de9c6500
commit
c9dbc49375
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class UiWebsocketPlugin(object):
|
|||
def actionMuteAdd(self, to, auth_address, cert_user_id, reason):
|
||||
self.cmd(
|
||||
"prompt",
|
||||
[_["Hide all content from <b>%s</b>?"] % html.escape(cert_user_id), reason, _["Mute"]],
|
||||
[_["Remove all content from <b>%s</b>?"] % html.escape(cert_user_id), reason, _["Mute"]],
|
||||
lambda res: self.cbMuteAdd(to, auth_address, cert_user_id, res if res else reason)
|
||||
)
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ class ContentFilterStorage(object):
|
|||
dir_inner_path = helper.getDirname(row["inner_path"])
|
||||
for file_name in site.storage.walk(dir_inner_path):
|
||||
if action == "remove":
|
||||
site.storage.onUpdated(dir_inner_path + file_name, False)
|
||||
site.storage.delete(dir_inner_path + file_name)
|
||||
else:
|
||||
site.storage.onUpdated(dir_inner_path + file_name)
|
||||
site.onFileDone(dir_inner_path + file_name)
|
||||
|
|
Loading…
Reference in a new issue