Fixes in relation to last commits

This commit is contained in:
Frisk 2024-10-09 18:57:36 +02:00
parent 029fd86826
commit 6c92ff15f3

View file

@ -239,7 +239,7 @@ class Wiki:
if "user" in censored_properties and "url" in message["author"]: if "user" in censored_properties and "url" in message["author"]:
message["author"]["name"] = context._("hidden") message["author"]["name"] = context._("hidden")
message["author"].pop("url") message["author"].pop("url")
if "action" in censored_properties and "url" in message.embed: if ("action" in censored_properties or ("content" in censored_properties and mode == "log_id")) and "url" in message.embed:
message["title"] = context._("~~hidden~~") message["title"] = context._("~~hidden~~")
message.embed.pop("url") message.embed.pop("url")
if "content" in censored_properties and "fields" in message.embed: if "content" in censored_properties and "fields" in message.embed: