mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fix #280
This commit is contained in:
parent
780c2c6221
commit
daa657f559
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue