mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Fix {{original}} macro left out if original is empty
This commit is contained in:
parent
1683b76c65
commit
24aff67d50
@ -1049,7 +1049,7 @@ class PromptManager {
|
||||
const groupMembers = this.getActiveGroupCharacters();
|
||||
const preparedPrompt = new Prompt(prompt);
|
||||
|
||||
if (original) {
|
||||
if (typeof original === 'string') {
|
||||
if (0 < groupMembers.length) preparedPrompt.content = substituteParams(prompt.content ?? '', null, null, original, groupMembers.join(', '));
|
||||
else preparedPrompt.content = substituteParams(prompt.content, null, null, original);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user