Fix escaping

This commit is contained in:
MarkusRost 2024-11-20 13:57:55 +00:00
parent 328e74be75
commit b4adfc549c

View file

@ -634,7 +634,7 @@ def embed_block_block(ctx: Context, change: dict):
if block_flags: if block_flags:
embed.add_field(ctx._("Block flags"), ", ".join( embed.add_field(ctx._("Block flags"), ", ".join(
block_flags)) # TODO Translate flags into MW messages, this requires making additional request in init_request since we want to get all messages with prefix (amprefix) block-log-flags- and that parameter is exclusive with ammessages block_flags)) # TODO Translate flags into MW messages, this requires making additional request in init_request since we want to get all messages with prefix (amprefix) block-log-flags- and that parameter is exclusive with ammessages
embed["title"] = ctx._("Blocked {blocked_user} {time}").format(blocked_user=user, time=block_expiry(change, ctx)) embed["title"] = ctx._("Blocked {blocked_user} {time}").format(blocked_user=sanitize_to_markdown(user), time=block_expiry(change, ctx))
embed_helper(ctx, embed, change) embed_helper(ctx, embed, change)
return embed return embed