mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 11:26:28 +08:00
FIX: Allow quoting thread's original message (#24773)
This commit is contained in:
@ -30,6 +30,7 @@ const chatTranscriptRule = {
|
||||
return;
|
||||
}
|
||||
|
||||
const isThread = threadId && content.includes("[chat");
|
||||
let wrapperDivToken = state.push("div_chat_transcript_wrap", "div", 1);
|
||||
|
||||
if (channelName && multiQuote) {
|
||||
@ -53,7 +54,7 @@ const chatTranscriptRule = {
|
||||
state.push("div_chat_transcript_meta", "div", -1);
|
||||
}
|
||||
|
||||
if (threadId) {
|
||||
if (isThread) {
|
||||
state.push("details_chat_transcript_wrap_open", "details", 1);
|
||||
state.push("summary_chat_transcript_open", "summary", 1);
|
||||
|
||||
@ -227,7 +228,7 @@ const chatTranscriptRule = {
|
||||
let messagesToken = state.push("div_chat_transcript_messages", "div", 1);
|
||||
messagesToken.attrs = [["class", "chat-transcript-messages"]];
|
||||
|
||||
if (threadId) {
|
||||
if (isThread) {
|
||||
const regex = /\[chat/i;
|
||||
const match = regex.exec(content);
|
||||
|
||||
|
Reference in New Issue
Block a user