Log mute actions

This commit is contained in:
shortcutme 2017-02-13 16:27:42 +01:00
parent 3ff2ec9104
commit 9381015d80
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -26,6 +26,7 @@ if "_" not in locals():
class UiWebsocketPlugin(object):
# Search and remove or readd files of an user
def changeDb(self, auth_address, action):
self.log.debug("Mute action %s on user %s" % (action, auth_address))
res = self.site.content_manager.contents.db.execute(
"SELECT * FROM content LEFT JOIN site USING (site_id) WHERE inner_path LIKE :inner_path",
{"inner_path": "%%/%s/%%" % auth_address}