mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
correct fix for character creation
(previous fix was bugged, prevented variables updating properly.. loading old characters would make a new chat dir with: (PrevCreatedCharName + CurSelCharName)
This commit is contained in:
@@ -646,7 +646,7 @@ app.post("/createcharacter", urlencodedParser, function (request, response) {
|
||||
const internalName = getPngName(request.body.ch_name);
|
||||
const avatarName = `${internalName}.png`;
|
||||
const defaultAvatar = './public/img/ai4.png';
|
||||
chatsPath = path.join(chatsPath, internalName);
|
||||
const chatsPath = directories.chats + internalName; //path.join(chatsPath, internalName);
|
||||
|
||||
if (!fs.existsSync(chatsPath)) fs.mkdirSync(chatsPath);
|
||||
|
||||
|
Reference in New Issue
Block a user