diff --git a/server/chat-plugins/repeats.ts b/server/chat-plugins/repeats.ts
index be9c4eb16d..dd87430f5c 100644
--- a/server/chat-plugins/repeats.ts
+++ b/server/chat-plugins/repeats.ts
@@ -138,7 +138,8 @@ export const pages: Chat.PageTable = {
for (const repeat of room.settings.repeats) {
const minutes = repeat.interval / (repeat.isByMessages ? 1 : 60 * 1000);
const repeatText = repeat.faq ? roomFaqs[room.roomid][repeat.id].source : repeat.phrase;
- const phrase = repeat.isHTML ? repeat.phrase : Chat.formatText(repeatText, true);
+ const phrase = repeat.faq ? visualizeFaq(roomFaqs[room.roomid][repeat.id]) :
+ repeat.isHTML ? repeat.phrase : Chat.formatText(repeatText, true);
html += `
| ${repeat.id} | ${phrase} | ${Chat.getReadmoreCodeBlock(repeatText)} | ${repeat.isByMessages ? this.tr`every ${minutes} chat message(s)` : this.tr`every ${minutes} minute(s)`} | `;
html += ` | `;
}
diff --git a/server/chat-plugins/room-faqs.ts b/server/chat-plugins/room-faqs.ts
index e166f71049..8d52b28b18 100644
--- a/server/chat-plugins/room-faqs.ts
+++ b/server/chat-plugins/room-faqs.ts
@@ -164,10 +164,11 @@ export const commands: Chat.ChatCommands = {
topic = getAlias(room.roomid, topic) || topic;
if (!this.runBroadcast()) return;
- this.sendReplyBox(visualizeFaq(roomFaqs[room.roomid][topic]));
+ const rfaq = roomFaqs[room.roomid][topic];
+ this.sendReplyBox(visualizeFaq(rfaq));
if (!this.broadcasting && user.can('ban', null, room, 'rfaq')) {
- const code = Utils.escapeHTML(roomFaqs[room.roomid][topic].source).replace(/\n/g, '
');
- this.sendReplyBox(`Source
/addfaq ${topic}, ${code} `);
+ const code = Utils.escapeHTML(rfaq.source).replace(/\n/g, '
');
+ this.sendReplyBox(`Source
/add${rfaq.html ? 'html' : ''}faq ${topic}, ${code} `);
}
},
roomfaqhelp: [