1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00

fix remote user profile media wrong url

This commit is contained in:
caipira113 2023-11-17 21:08:39 +09:00 committed by NoriDev
parent d32ad30e8e
commit 147bff8d07

View File

@ -253,8 +253,8 @@ export class ApPersonService implements OnModuleInit {
return {
avatarId: avatar?.id ?? null,
bannerId: banner?.id ?? null,
avatarUrl: avatar ? this.driveFileEntityService.getPublicUrl(avatar, 'avatar', true) : null,
bannerUrl: banner ? this.driveFileEntityService.getPublicUrl(banner, undefined, true) : null,
avatarUrl: avatar ? this.driveFileEntityService.getPublicUrl(avatar, 'avatar', false) : null,
bannerUrl: banner ? this.driveFileEntityService.getPublicUrl(banner, undefined, false) : null,
avatarBlurhash: avatar?.blurhash ?? null,
bannerBlurhash: banner?.blurhash ?? null,
};