diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-11-18 06:27:22 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-11-18 06:27:22 +0900 |
| commit | e406791b7b8720e89f57131279d6de0f36497ede (patch) | |
| tree | 315a78b8c8ebe2731f65b908bba49be7e7d68e89 /src | |
| parent | Refactor (diff) | |
| download | sharkey-e406791b7b8720e89f57131279d6de0f36497ede.tar.gz sharkey-e406791b7b8720e89f57131279d6de0f36497ede.tar.bz2 sharkey-e406791b7b8720e89f57131279d6de0f36497ede.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/activitypub/models/person.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 80b237f875..9be9075ca5 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -212,7 +212,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us const avatarId = avatar ? avatar.id : null; const bannerId = banner ? banner.id : null; - const avatarUrl = avatar ? DriveFiles.getPublicUrl(avatar) : null; + const avatarUrl = avatar ? DriveFiles.getPublicUrl(avatar, true) : null; const bannerUrl = banner ? DriveFiles.getPublicUrl(banner) : null; const avatarColor = avatar && avatar.properties.avgColor ? avatar.properties.avgColor : null; const bannerColor = banner && banner.properties.avgColor ? banner.properties.avgColor : null; @@ -326,7 +326,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint if (avatar) { updates.avatarId = avatar.id; - updates.avatarUrl = DriveFiles.getPublicUrl(avatar); + updates.avatarUrl = DriveFiles.getPublicUrl(avatar, true); updates.avatarColor = avatar.properties.avgColor ? avatar.properties.avgColor : null; } |