Fix i18n on messages coming for webhook removals

This commit is contained in:
Frisk 2024-11-18 10:10:45 +01:00
parent dd54fa3207
commit bbd7e1e0c1

View file

@ -552,6 +552,7 @@ class Wiki:
rc_targets_long_lived = self.rc_targets.copy() # Create a copy since those will be updated and we live in async world rc_targets_long_lived = self.rc_targets.copy() # Create a copy since those will be updated and we live in async world
for combination, webhooks in rc_targets_long_lived.items(): for combination, webhooks in rc_targets_long_lived.items():
lang = combination.lang lang = combination.lang
lang = langs[lang]["wiki"]
try: # This is best effort scenario, but I don't plan to add re-tries to this try: # This is best effort scenario, but I don't plan to add re-tries to this
dc_msg = DiscordMessage("compact", "custom/webhook_removal", dc_msg = DiscordMessage("compact", "custom/webhook_removal",
webhooks, content=lang.gettext( webhooks, content=lang.gettext(