From 92d0d5d007a502bb90712f0e6cf17f454d2adee5 Mon Sep 17 00:00:00 2001 From: MarkusRost <2701034-MarkusRost@users.noreply.gitlab.com> Date: Thu, 8 Jul 2021 10:35:26 +0000 Subject: [PATCH] Change "Removed" to "~~hidden~~" Matches formatters then edit already stats partially hidden, no need to specifically state that the info got removed. close #222 --- src/discord/redaction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/discord/redaction.py b/src/discord/redaction.py index 6fa86ba..b7aac13 100644 --- a/src/discord/redaction.py +++ b/src/discord/redaction.py @@ -74,15 +74,15 @@ def redact_messages(ids: list, entry_type: int, to_censor: dict): logger.error("Couldn't find entry in the database for RevDel to censor information. This is probably because the script has been recently restarted or cache cleared.") return if "user" in to_censor and "url" in new_embed["author"]: - new_embed["author"]["name"] = _("Removed") + new_embed["author"]["name"] = _("hidden") new_embed["author"].pop("url") if "action" in to_censor and "url" in new_embed: - new_embed["title"] = _("Removed") + new_embed["title"] = _("~~hidden~~") new_embed.pop("url") if "content" in to_censor and "fields" in new_embed: new_embed.pop("fields") if "comment" in to_censor: - new_embed["description"] = _("Removed") + new_embed["description"] = _("~~hidden~~") message["embeds"][0] = new_embed db_cursor.execute("UPDATE messages SET content = ? WHERE message_id = ?;", (json.dumps(message), row[1],)) db_connection.commit()