aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/share.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-27 14:44:51 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:53 +0100
commit4e50b6a1c9a3eb261e04ede73241648e6edf21d6 (patch)
treee1c6c121d561ffc1cf2996daec03a1e7f27f0a25 /server/lib/activitypub/share.ts
parent74bb2cb8348d6794ed3a0e2ec94c8c9abdde82cf (diff)
downloadPeerTube-4e50b6a1c9a3eb261e04ede73241648e6edf21d6.tar.gz
PeerTube-4e50b6a1c9a3eb261e04ede73241648e6edf21d6.tar.zst
PeerTube-4e50b6a1c9a3eb261e04ede73241648e6edf21d6.zip
Add shares forward and collection on videos/video channels
Diffstat (limited to 'server/lib/activitypub/share.ts')
-rw-r--r--server/lib/activitypub/share.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/share.ts b/server/lib/activitypub/share.ts
index 689e200a6..e14b0f50c 100644
--- a/server/lib/activitypub/share.ts
+++ b/server/lib/activitypub/share.ts
@@ -3,7 +3,7 @@ import { getServerAccount } from '../../helpers/utils'
3import { database as db } from '../../initializers' 3import { database as db } from '../../initializers'
4import { VideoChannelInstance } from '../../models/index' 4import { VideoChannelInstance } from '../../models/index'
5import { VideoInstance } from '../../models/video/video-interface' 5import { VideoInstance } from '../../models/video/video-interface'
6import { sendVideoAnnounce, sendVideoChannelAnnounce } from './send/send-announce' 6import { sendVideoAnnounceToFollowers, sendVideoChannelAnnounceToFollowers } from './send/send-announce'
7 7
8async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: Transaction) { 8async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t: Transaction) {
9 const serverAccount = await getServerAccount() 9 const serverAccount = await getServerAccount()
@@ -13,7 +13,7 @@ async function shareVideoChannelByServer (videoChannel: VideoChannelInstance, t:
13 videoChannelId: videoChannel.id 13 videoChannelId: videoChannel.id
14 }, { transaction: t }) 14 }, { transaction: t })
15 15
16 return sendVideoChannelAnnounce(serverAccount, videoChannel, t) 16 return sendVideoChannelAnnounceToFollowers(serverAccount, videoChannel, t)
17} 17}
18 18
19async function shareVideoByServer (video: VideoInstance, t: Transaction) { 19async function shareVideoByServer (video: VideoInstance, t: Transaction) {
@@ -24,7 +24,7 @@ async function shareVideoByServer (video: VideoInstance, t: Transaction) {
24 videoId: video.id 24 videoId: video.id
25 }, { transaction: t }) 25 }, { transaction: t })
26 26
27 return sendVideoAnnounce(serverAccount, video, t) 27 return sendVideoAnnounceToFollowers(serverAccount, video, t)
28} 28}
29 29
30export { 30export {