fix modified for stel

This commit is contained in:
fly_mc 2024-09-15 21:45:40 +08:00
parent b9db59ce7f
commit 87ca834647

View file

@ -492,7 +492,7 @@ export class UserEntityService implements OnModuleInit {
: []; : [];
const avatarDecorations = user.host == null const avatarDecorations = user.host == null
? getLocalUserDecorations() ? getLocalUserDecorations()
: this.cacheService.stpvRemoteUserDecorationsCache.fetch(user.id).then(res => res.map(ad => ({ : this.cacheService.pariRemoteUserDecorationsCache.fetch(user.id).then(res => res.map(ad => ({
...ad, ...ad,
url: ad.url && this.config.proxyRemoteFiles url: ad.url && this.config.proxyRemoteFiles
? `${this.config.mediaProxy}/static.webp?url=${(encodeURIComponent(ad.url))}` ? `${this.config.mediaProxy}/static.webp?url=${(encodeURIComponent(ad.url))}`