fix(ModelModal): respect civitai_host setting for creator profile link

This commit is contained in:
Will Miao
2026-07-25 07:15:12 +08:00
parent a8283a0d00
commit 1e4c315481

View File

@@ -885,7 +885,8 @@ function setupEventHandlers(filePath, modelType) {
case 'view-creator':
const username = target.dataset.username;
if (username) {
window.open(`https://civitai.com/user/${username}`, '_blank');
const host = state.global.settings.civitai_host || 'civitai.com';
window.open(`https://${host}/user/${username}`, '_blank');
}
break;
case 'open-file-location':