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 038f19b7d..f256f8d21 100644 --- a/server/lib/activitypub/share.ts +++ b/server/lib/activitypub/share.ts | |||
@@ -3,7 +3,7 @@ import { VideoPrivacy } from '../../../shared/models/videos' | |||
3 | import { getServerActor } from '../../helpers/utils' | 3 | import { getServerActor } from '../../helpers/utils' |
4 | import { VideoModel } from '../../models/video/video' | 4 | import { VideoModel } from '../../models/video/video' |
5 | import { VideoShareModel } from '../../models/video/video-share' | 5 | import { VideoShareModel } from '../../models/video/video-share' |
6 | import { sendVideoAnnounceToFollowers } from './send' | 6 | import { sendVideoAnnounce } from './send' |
7 | import { getAnnounceActivityPubUrl } from './url' | 7 | import { getAnnounceActivityPubUrl } from './url' |
8 | 8 | ||
9 | async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) { | 9 | async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) { |
@@ -23,7 +23,7 @@ async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) | |||
23 | }, | 23 | }, |
24 | transaction: t | 24 | transaction: t |
25 | }).then(([ serverShare, created ]) => { | 25 | }).then(([ serverShare, created ]) => { |
26 | if (created) return sendVideoAnnounceToFollowers(serverActor, serverShare, video, t) | 26 | if (created) return sendVideoAnnounce(serverActor, serverShare, video, t) |
27 | 27 | ||
28 | return undefined | 28 | return undefined |
29 | }) | 29 | }) |
@@ -40,7 +40,7 @@ async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) | |||
40 | }, | 40 | }, |
41 | transaction: t | 41 | transaction: t |
42 | }).then(([ videoChannelShare, created ]) => { | 42 | }).then(([ videoChannelShare, created ]) => { |
43 | if (created) return sendVideoAnnounceToFollowers(serverActor, videoChannelShare, video, t) | 43 | if (created) return sendVideoAnnounce(serverActor, videoChannelShare, video, t) |
44 | 44 | ||
45 | return undefined | 45 | return undefined |
46 | }) | 46 | }) |