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