diff options
Diffstat (limited to 'server/lib/activitypub/share.ts')
-rw-r--r-- | server/lib/activitypub/share.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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' | |||
3 | import { database as db } from '../../initializers' | 3 | import { database as db } from '../../initializers' |
4 | import { VideoChannelInstance } from '../../models/index' | 4 | import { VideoChannelInstance } from '../../models/index' |
5 | import { VideoInstance } from '../../models/video/video-interface' | 5 | import { VideoInstance } from '../../models/video/video-interface' |
6 | import { sendVideoAnnounce, sendVideoChannelAnnounce } from './send/send-announce' | 6 | import { sendVideoAnnounceToFollowers, sendVideoChannelAnnounceToFollowers } from './send/send-announce' |
7 | 7 | ||
8 | async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: Transaction) { | 8 | async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: Transaction) { |
9 | const serverAccount = await getServerAccount() | 9 | const serverAccount = await getServerAccount() |
@@ -13,7 +13,7 @@ async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: | |||
13 | videoChannelId: videoChannel.id | 13 | videoChannelId: videoChannel.id |
14 | }, { transaction: t }) | 14 | }, { transaction: t }) |
15 | 15 | ||
16 | return sendVideoChannelAnnounce(serverAccount, videoChannel, t) | 16 | return sendVideoChannelAnnounceToFollowers(serverAccount, videoChannel, t) |
17 | } | 17 | } |
18 | 18 | ||
19 | async function shareVideoByServer (video: VideoInstance, t: Transaction) { | 19 | async function shareVideoByServer (video: VideoInstance, t: Transaction) { |
@@ -24,7 +24,7 @@ async function shareVideoByServer (video: VideoInstance, t: Transaction) { | |||
24 | videoId: video.id | 24 | videoId: video.id |
25 | }, { transaction: t }) | 25 | }, { transaction: t }) |
26 | 26 | ||
27 | return sendVideoAnnounce(serverAccount, video, t) | 27 | return sendVideoAnnounceToFollowers(serverAccount, video, t) |
28 | } | 28 | } |
29 | 29 | ||
30 | export { | 30 | export { |