minor
This commit is contained in:
parent
770ed88cfa
commit
2a0a0d3761
|
@ -184,7 +184,7 @@ export class ProfileCache extends AsyncCache<CharacterCacheRecord> {
|
||||||
const avatarUrl = match[1].trim();
|
const avatarUrl = match[1].trim();
|
||||||
|
|
||||||
if (!this.isSafeImageURL(avatarUrl)) {
|
if (!this.isSafeImageURL(avatarUrl)) {
|
||||||
log.info('portrait.hq.invalid.domain', { url: avatarUrl });
|
log.info('portrait.hq.invalid.domain', { name: c.character.name, url: avatarUrl });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ export class ProfileCache extends AsyncCache<CharacterCacheRecord> {
|
||||||
parent.send('update-avatar-url', c.character.name, avatarUrl);
|
parent.send('update-avatar-url', c.character.name, avatarUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info('portrait.hq.url', { url: avatarUrl });
|
log.info('portrait.hq.url', { name: c.character.name, url: avatarUrl });
|
||||||
core.characters.setOverride(c.character.name, 'avatarUrl', avatarUrl);
|
core.characters.setOverride(c.character.name, 'avatarUrl', avatarUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue