mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'staging' into generate-cleanups-3
This commit is contained in:
@@ -275,7 +275,7 @@ DOMPurify.addHook('afterSanitizeAttributes', function (node) {
|
||||
}
|
||||
});
|
||||
|
||||
DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
|
||||
DOMPurify.addHook('uponSanitizeAttribute', (_, data, config) => {
|
||||
if (!config['MESSAGE_SANITIZE']) {
|
||||
return;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
|
||||
return v;
|
||||
}
|
||||
|
||||
return "custom-" + v;
|
||||
return 'custom-' + v;
|
||||
}).join(' ');
|
||||
}
|
||||
break;
|
||||
@@ -4150,6 +4150,7 @@ export async function sendMessageAsUser(messageText, messageBias, insertAt = nul
|
||||
|
||||
if (messageBias) {
|
||||
message.extra.bias = messageBias;
|
||||
message.mes = removeMacros(message.mes);
|
||||
}
|
||||
|
||||
await populateFileAttachment(message);
|
||||
|
Reference in New Issue
Block a user