From d50acfab69ce9e05b272dea6c4d34d52960ba14c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Dec 2017 20:03:37 +0100 Subject: Add comments federation tests --- server/lib/activitypub/videos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/activitypub') diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index fab43757a..ded854ee1 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -17,12 +17,12 @@ import { sendUndoLikeToVideoFollowers } from './send' -function fetchRemoteVideoPreview (video: VideoModel) { +function fetchRemoteVideoPreview (video: VideoModel, reject: Function) { // FIXME: use url const host = video.VideoChannel.Account.Actor.Server.host const path = join(STATIC_PATHS.PREVIEWS, video.getPreviewName()) - return request.get(REMOTE_SCHEME.HTTP + '://' + host + path) + return request.get(REMOTE_SCHEME.HTTP + '://' + host + path, err => reject(err)) } async function fetchRemoteVideoDescription (video: VideoModel) { -- cgit v1.2.3