isOrigin = false
) {
const to = [ ACTIVITY_PUB.PUBLIC ]
- const cc = [ ]
+ const cc = []
// Owner of the video we comment
if (isOrigin === false) {
return actors
}
-async function getAudience (actorSender: ActorModel, t: Transaction, isPublic = true) {
+function getAudience (actorSender: ActorModel, isPublic = true) {
return buildAudience([ actorSender.followersUrl ], isPublic)
}
to = [ ACTIVITY_PUB.PUBLIC ]
cc = followerUrls
} else { // Unlisted
- to = [ ]
- cc = [ ]
+ to = []
+ cc = []
}
return { to, cc }
}
-function audiencify <T> (object: T, audience: ActivityAudience) {
+function audiencify<T> (object: T, audience: ActivityAudience) {
return Object.assign(object, audience)
}