mirror of
https://github.com/paricafe/misskey.git
synced 2025-03-13 03:59:17 -05:00
fix avatar deco media proxy
This commit is contained in:
parent
87ca834647
commit
226fe82dbf
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ export class UserEntityService implements OnModuleInit {
|
|||
? getLocalUserDecorations()
|
||||
: this.cacheService.pariRemoteUserDecorationsCache.fetch(user.id).then(res => res.map(ad => ({
|
||||
...ad,
|
||||
url: ad.url && this.config.proxyRemoteFiles
|
||||
url: ad.url && (this.config.proxyRemoteFiles || this.config.mediaProxy)
|
||||
? `${this.config.mediaProxy}/static.webp?url=${(encodeURIComponent(ad.url))}`
|
||||
: ad.url,
|
||||
})));
|
||||
|
|
Loading…
Add table
Reference in a new issue