Announcements: Mark formatted text as trusted

This commit is contained in:
Kris Johnson 2021-03-23 12:47:40 -06:00
parent f4d53c0e37
commit 2e4eaf97e7

View File

@ -90,7 +90,7 @@ export const commands: ChatCommands = {
return this.errorReply(this.tr`There is already a poll or announcement in progress in this room.`);
}
const source = supportHTML ? this.checkHTML(target) : Chat.formatText(target);
const source = supportHTML ? this.checkHTML(target) : Chat.formatText(target, true);
room.setMinorActivity(new Announcement(room, {source}));