summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-20 02:40:37 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-20 02:40:37 +0900
commitec2b1ec3f0035466585d9cc2a7842e519e14e31a (patch)
tree9a8e7c40e7b068d24b362a72552e456b1adddba7 /src/remote/activitypub/models
parent4.24.1 (diff)
downloadsharkey-ec2b1ec3f0035466585d9cc2a7842e519e14e31a.tar.gz
sharkey-ec2b1ec3f0035466585d9cc2a7842e519e14e31a.tar.bz2
sharkey-ec2b1ec3f0035466585d9cc2a7842e519e14e31a.zip
#1334
Diffstat (limited to 'src/remote/activitypub/models')
-rw-r--r--src/remote/activitypub/models/image.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/models/image.ts b/src/remote/activitypub/models/image.ts
index fb17a7c9e5..8b33187ef5 100644
--- a/src/remote/activitypub/models/image.ts
+++ b/src/remote/activitypub/models/image.ts
@@ -16,7 +16,7 @@ export async function createImage(actor: IRemoteUser, value: any): Promise<IDriv
return null;
}
- const image = await new Resolver().resolve(value);
+ const image = await new Resolver().resolve(value) as any;
if (image.url == null) {
throw new Error('invalid image: url not privided');
@@ -24,7 +24,7 @@ export async function createImage(actor: IRemoteUser, value: any): Promise<IDriv
log(`Creating the Image: ${image.url}`);
- return await uploadFromUrl(image.url, actor, null, image.url);
+ return await uploadFromUrl(image.url, actor, null, image.url, image.sensitive);
}
/**