X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fshare.ts;h=f256f8d21fca772d4c04bfab439e07bfaacde459;hb=c73e83da283c6d4eb094e384d59c4f8eb221507d;hp=038f19b7dadc5bd416b65f8445e7b589e8ed93b1;hpb=a797728009eb5c26cf55624a4a01e8ecb73f1297;p=github%2FChocobozzz%2FPeerTube.git 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' import { getServerActor } from '../../helpers/utils' import { VideoModel } from '../../models/video/video' import { VideoShareModel } from '../../models/video/video-share' -import { sendVideoAnnounceToFollowers } from './send' +import { sendVideoAnnounce } from './send' import { getAnnounceActivityPubUrl } from './url' async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) { @@ -23,7 +23,7 @@ async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) }, transaction: t }).then(([ serverShare, created ]) => { - if (created) return sendVideoAnnounceToFollowers(serverActor, serverShare, video, t) + if (created) return sendVideoAnnounce(serverActor, serverShare, video, t) return undefined }) @@ -40,7 +40,7 @@ async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction) }, transaction: t }).then(([ videoChannelShare, created ]) => { - if (created) return sendVideoAnnounceToFollowers(serverActor, videoChannelShare, video, t) + if (created) return sendVideoAnnounce(serverActor, videoChannelShare, video, t) return undefined })