Use |uhtml| for repeats to prevent flooding (#8594)

This commit is contained in:
FeluciaPS 2021-12-30 06:17:52 +01:00 committed by GitHub
parent 4793b33cf1
commit 9ab15060cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ export const Repeats = new class {
const repeatedPhrase = repeat.faq ?
visualizeFaq(roomFaqs[targetRoom.roomid][repeat.id]) : Chat.formatText(phrase, true);
const formattedText = repeat.isHTML ? phrase : repeatedPhrase;
targetRoom.add(`|html|<div class="infobox">${formattedText}</div>`);
targetRoom.add(`|uhtml|repeat-${repeat.id}|<div class="infobox">${formattedText}</div>`);
targetRoom.update();
};