From 5c6d985faeef1d6793d3f44ca6374f1a9b722806 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 14 Nov 2018 15:01:28 +0100 Subject: Check activities host --- scripts/update-host.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 1dc19664d..422a3c9a7 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts @@ -4,7 +4,7 @@ import { VideoModel } from '../server/models/video/video' import { ActorModel } from '../server/models/activitypub/actor' import { getAccountActivityPubUrl, - getAnnounceActivityPubUrl, + getVideoAnnounceActivityPubUrl, getVideoActivityPubUrl, getVideoChannelActivityPubUrl, getVideoCommentActivityPubUrl } from '../server/lib/activitypub' @@ -78,7 +78,7 @@ async function run () { console.log('Updating video share ' + videoShare.url) - videoShare.url = getAnnounceActivityPubUrl(videoShare.Video.url, videoShare.Actor) + videoShare.url = getVideoAnnounceActivityPubUrl(videoShare.Actor, videoShare.Video) await videoShare.save() } -- cgit v1.2.3