diff options
Diffstat (limited to 'server/lib/activitypub/send/send-like.ts')
-rw-r--r-- | server/lib/activitypub/send/send-like.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/lib/activitypub/send/send-like.ts b/server/lib/activitypub/send/send-like.ts index 7e0c73796..743646455 100644 --- a/server/lib/activitypub/send/send-like.ts +++ b/server/lib/activitypub/send/send-like.ts | |||
@@ -4,6 +4,7 @@ import { ActorModel } from '../../../models/activitypub/actor' | |||
4 | import { VideoModel } from '../../../models/video/video' | 4 | import { VideoModel } from '../../../models/video/video' |
5 | import { getVideoLikeActivityPubUrl } from '../url' | 5 | import { getVideoLikeActivityPubUrl } from '../url' |
6 | import { | 6 | import { |
7 | audiencify, | ||
7 | broadcastToFollowers, | 8 | broadcastToFollowers, |
8 | getActorsInvolvedInVideo, | 9 | getActorsInvolvedInVideo, |
9 | getAudience, | 10 | getAudience, |
@@ -44,14 +45,12 @@ async function likeActivityData ( | |||
44 | audience = await getAudience(byActor, t) | 45 | audience = await getAudience(byActor, t) |
45 | } | 46 | } |
46 | 47 | ||
47 | return { | 48 | return audiencify({ |
48 | type: 'Like', | 49 | type: 'Like', |
49 | id: url, | 50 | id: url, |
50 | actor: byActor.url, | 51 | actor: byActor.url, |
51 | to: audience.to, | ||
52 | cc: audience.cc, | ||
53 | object: video.url | 52 | object: video.url |
54 | } | 53 | }, audience) |
55 | } | 54 | } |
56 | 55 | ||
57 | // --------------------------------------------------------------------------- | 56 | // --------------------------------------------------------------------------- |