From daa657f559bd9cb23c34e880d87d28cdf8047025 Mon Sep 17 00:00:00 2001 From: MarkusRost <2701034-MarkusRost@users.noreply.gitlab.com> Date: Wed, 9 Oct 2024 13:52:07 +0000 Subject: [PATCH] Fix #280 --- src/discord/redaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/redaction.py b/src/discord/redaction.py index 911a9d7..0048ac0 100644 --- a/src/discord/redaction.py +++ b/src/discord/redaction.py @@ -79,7 +79,7 @@ def redact_messages(ids, entry_type: int, to_censor: dict): # : Union[List[Unio if "user" in to_censor and "url" in new_embed["author"]: new_embed["author"]["name"] = _("hidden") new_embed["author"].pop("url") - if "action" in to_censor and "url" in new_embed: + if ("action" in to_censor or ("content" in to_censor and entry_type == 1)) and "url" in new_embed: new_embed["title"] = _("~~hidden~~") new_embed.pop("url") if "content" in to_censor and "fields" in new_embed: