From a7237d157a353eddb41a0f2cbc6c1719cec31d50 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Oct 2018 17:57:40 +0900 Subject: [PATCH] Resolve #2600 --- src/remote/activitypub/models/image.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/remote/activitypub/models/image.ts b/src/remote/activitypub/models/image.ts index 8b33187ef5..f1132014c7 100644 --- a/src/remote/activitypub/models/image.ts +++ b/src/remote/activitypub/models/image.ts @@ -2,7 +2,7 @@ import * as debug from 'debug'; import uploadFromUrl from '../../../services/drive/upload-from-url'; import { IRemoteUser } from '../../../models/user'; -import { IDriveFile } from '../../../models/drive-file'; +import DriveFile, { IDriveFile } from '../../../models/drive-file'; import Resolver from '../resolver'; const log = debug('misskey:activitypub'); @@ -24,7 +24,22 @@ export async function createImage(actor: IRemoteUser, value: any): Promise