Merge pull request #2257 from hexa4ce/staging

Add support for new characterhub.org url (chub.ai legacy site)
This commit is contained in:
Cohee 2024-05-16 22:11:10 +03:00 committed by GitHub
commit 3832afaeba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ function parseChubUrl(str) {
let domainIndex = -1;
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;
}
});
@ -521,7 +521,7 @@ router.post('/importURL', jsonParser, async (request, response) => {
let result;
let type;
const isChub = host.includes('chub.ai');
const isChub = host.includes('chub.ai') || host.includes('characterhub.org');
const isJannnyContent = host.includes('janitorai');
const isPygmalionContent = host.includes('pygmalion.chat');
const isAICharacterCardsContent = host.includes('aicharactercards.com');