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()
videoChannelId: videoChannel.id
}, { transaction: t })
- return sendVideoChannelAnnounce(serverAccount, videoChannel, t)
+ return sendVideoChannelAnnounceToFollowers(serverAccount, videoChannel, t)
}
async function shareVideoByServer (video: VideoInstance, t: Transaction) {
videoId: video.id
}, { transaction: t })
- return sendVideoAnnounce(serverAccount, video, t)
+ return sendVideoAnnounceToFollowers(serverAccount, video, t)
}
export {