summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-11-18 06:27:22 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-11-18 06:27:22 +0900
commite406791b7b8720e89f57131279d6de0f36497ede (patch)
tree315a78b8c8ebe2731f65b908bba49be7e7d68e89 /src/remote
parentRefactor (diff)
downloadsharkey-e406791b7b8720e89f57131279d6de0f36497ede.tar.gz
sharkey-e406791b7b8720e89f57131279d6de0f36497ede.tar.bz2
sharkey-e406791b7b8720e89f57131279d6de0f36497ede.zip
Fix bug
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/activitypub/models/person.ts4
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;
}