- // Use the server actor to send the view
- const serverActor = await getServerActor()
- const followersException = [ byActor ]
- return broadcastToFollowers(data, serverActor, actorsToForwardView, t, followersException)
-}
-
-async function sendCreateDislikeToOrigin (byActor: ActorModel, video: VideoModel, t: Transaction) {
- const url = getVideoDislikeActivityPubUrl(byActor, video)
- const dislikeActivityData = createDislikeActivityData(byActor, video)
+ let audience: ActivityAudience
+ if (isOrigin) {
+ audience = getVideoCommentAudience(comment, threadParentComments, actorsInvolvedInComment, isOrigin)
+ } else {
+ audience = getAudienceFromFollowersOf(actorsInvolvedInComment.concat(parentsCommentActors))
+ }