expliciting type checks and predicates (server only)
This commit is contained in:
parent
5f7021c33d
commit
c1e791bad0
34 changed files with 127 additions and 84 deletions
|
@ -20,7 +20,7 @@ function getVideoCommentAudience (
|
|||
isOrigin = false
|
||||
) {
|
||||
const to = [ ACTIVITY_PUB.PUBLIC ]
|
||||
const cc = []
|
||||
const cc: string[] = []
|
||||
|
||||
// Owner of the video we comment
|
||||
if (isOrigin === false) {
|
||||
|
@ -60,8 +60,8 @@ function getAudience (actorSender: ActorModel, isPublic = true) {
|
|||
}
|
||||
|
||||
function buildAudience (followerUrls: string[], isPublic = true) {
|
||||
let to = []
|
||||
let cc = []
|
||||
let to: string[] = []
|
||||
let cc: string[] = []
|
||||
|
||||
if (isPublic) {
|
||||
to = [ ACTIVITY_PUB.PUBLIC ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue