From 4e50b6a1c9a3eb261e04ede73241648e6edf21d6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Nov 2017 14:44:51 +0100 Subject: Add shares forward and collection on videos/video channels --- server/lib/activitypub/share.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib/activitypub/share.ts') diff --git a/server/lib/activitypub/share.ts b/server/lib/activitypub/share.ts index 689e200a6..e14b0f50c 100644 --- a/server/lib/activitypub/share.ts +++ b/server/lib/activitypub/share.ts @@ -3,7 +3,7 @@ import { getServerAccount } from '../../helpers/utils' import { database as db } from '../../initializers' import { VideoChannelInstance } from '../../models/index' import { VideoInstance } from '../../models/video/video-interface' -import { sendVideoAnnounce, sendVideoChannelAnnounce } from './send/send-announce' +import { sendVideoAnnounceToFollowers, sendVideoChannelAnnounceToFollowers } from './send/send-announce' async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: Transaction) { const serverAccount = await getServerAccount() @@ -13,7 +13,7 @@ async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: videoChannelId: videoChannel.id }, { transaction: t }) - return sendVideoChannelAnnounce(serverAccount, videoChannel, t) + return sendVideoChannelAnnounceToFollowers(serverAccount, videoChannel, t) } async function shareVideoByServer (video: VideoInstance, t: Transaction) { @@ -24,7 +24,7 @@ async function shareVideoByServer (video: VideoInstance, t: Transaction) { videoId: video.id }, { transaction: t }) - return sendVideoAnnounce(serverAccount, video, t) + return sendVideoAnnounceToFollowers(serverAccount, video, t) } export { -- cgit v1.2.3