Fix lint
[oweals/peertube.git] / server / lib / activitypub / share.ts
index 689e200a6c4cce00074b2db63e72e7d1a8169a8c..e14b0f50c0f5d290ac04befca30ac8a9ac28e94f 100644 (file)
@@ -3,7 +3,7 @@ import { getServerAccount } from '../../helpers/utils'
 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()
@@ -13,7 +13,7 @@ async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t:
     videoChannelId: videoChannel.id
   }, { transaction: t })
 
-  return sendVideoChannelAnnounce(serverAccount, videoChannel, t)
+  return sendVideoChannelAnnounceToFollowers(serverAccount, videoChannel, t)
 }
 
 async function shareVideoByServer (video: VideoInstance, t: Transaction) {
@@ -24,7 +24,7 @@ async function shareVideoByServer (video: VideoInstance, t: Transaction) {
     videoId: video.id
   }, { transaction: t })
 
-  return sendVideoAnnounce(serverAccount, video, t)
+  return sendVideoAnnounceToFollowers(serverAccount, video, t)
 }
 
 export {