This commit is contained in:
Mr. Stallion 2024-01-28 14:00:59 -08:00
parent 770ed88cfa
commit 2a0a0d3761
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
} }