mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Added support for new characterhub.org url (former chub.ai) for character imports
This commit is contained in:
@ -351,7 +351,7 @@ function parseChubUrl(str) {
|
|||||||
let domainIndex = -1;
|
let domainIndex = -1;
|
||||||
|
|
||||||
splitStr.forEach((part, index) => {
|
splitStr.forEach((part, index) => {
|
||||||
if (part === 'www.chub.ai' || part === 'chub.ai') {
|
if (part === 'www.chub.ai' || part === 'chub.ai' || part === 'www.characterhub.org' || part === 'characterhub.org') {
|
||||||
domainIndex = index;
|
domainIndex = index;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -521,7 +521,7 @@ router.post('/importURL', jsonParser, async (request, response) => {
|
|||||||
let result;
|
let result;
|
||||||
let type;
|
let type;
|
||||||
|
|
||||||
const isChub = host.includes('chub.ai');
|
const isChub = host.includes('chub.ai') || host.includes('characterhub.org');
|
||||||
const isJannnyContent = host.includes('janitorai');
|
const isJannnyContent = host.includes('janitorai');
|
||||||
const isPygmalionContent = host.includes('pygmalion.chat');
|
const isPygmalionContent = host.includes('pygmalion.chat');
|
||||||
const isAICharacterCardsContent = host.includes('aicharactercards.com');
|
const isAICharacterCardsContent = host.includes('aicharactercards.com');
|
||||||
|
Reference in New Issue
Block a user