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) {
},
transaction: t
}).then(([ serverShare, created ]) => {
- if (created) return sendVideoAnnounceToFollowers(serverActor, serverShare, video, t)
+ if (created) return sendVideoAnnounce(serverActor, serverShare, video, t)
return undefined
})
},
transaction: t
}).then(([ videoChannelShare, created ]) => {
- if (created) return sendVideoAnnounceToFollowers(serverActor, videoChannelShare, video, t)
+ if (created) return sendVideoAnnounce(serverActor, videoChannelShare, video, t)
return undefined
})