ActivityPub-federated video streaming platform using P2P directly in your web browser
import { ResultList } from '../../common/index.js'
import { Account } from '../../actors/index.js'
import { VideoChannelSummary } from '../channel/video-channel.model.js'
export interface VideoComment {
id: number
url: string
text: string
threadId: number
inReplyToCommentId: number
videoId: number
createdAt: Date | string
updatedAt: Date | string
deletedAt: Date | string
isDeleted: boolean
totalRepliesFromVideoAuthor: number
totalReplies: number
account: Account
heldForReview: boolean
}
export interface VideoCommentForAdminOrUser {
id: number
url: string
text: string
threadId: number
inReplyToCommentId: number
createdAt: Date | string
updatedAt: Date | string
account: Account
video: {
id: number
uuid: string
name: string
channel: VideoChannelSummary
}
heldForReview: boolean
automaticTags: string[]
}
export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number }
export interface VideoCommentThreadTree {
comment: VideoComment
// May contain less elements than `totalChildren`: the tree is truncated in depth and in width
children: VideoCommentThreadTree[]
// Total direct replies of `comment` the current user can see
totalChildren: number
}
export type VideoCommentReplies = ResultList<VideoCommentThreadTree>