From 88bf0acf5e057e1df401b2768f8cb0ff4d05d644 Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Wed, 10 May 2023 23:07:32 +0100 Subject: [PATCH] Add the sender when showing a policy rule change. (#51) ![image](https://github.com/Gnuxie/Draupnir/assets/50846879/1e445d60-d816-4bd1-bec2-c6b4128793d7) Mainly useful for Community Moderation Effort. --- src/ProtectedRoomsSet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProtectedRoomsSet.ts b/src/ProtectedRoomsSet.ts index 31bdc0af..6b564501 100644 --- a/src/ProtectedRoomsSet.ts +++ b/src/ProtectedRoomsSet.ts @@ -454,8 +454,8 @@ export class ProtectedRoomsSet { } else if (ruleKind === RULE_ROOM) { ruleKind = 'room'; } - html += `
${htmlEscape(rule.recommendation ?? "")}
): ${htmlEscape(rule.entity)}
(${htmlEscape(rule.reason)})${htmlEscape(rule.recommendation ?? "")}
): ${htmlEscape(rule.entity)}
(${htmlEscape(rule.reason)})