X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Ftypings%2Fmodels%2Fvideo%2Fvideo-comment.ts;h=4fd1c29e8cfcb9758dfc498f24ef3c1956d185ed;hb=8424c4026afd7304880a4ce8138a04ffb3d8c938;hp=e8bccba0f097a89cbe6f8af9174456a5d8c1d965;hpb=1ca9f7c3f7afac2af4c4c25b98426731f7e789c6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/typings/models/video/video-comment.ts b/server/typings/models/video/video-comment.ts index e8bccba0f..4fd1c29e8 100644 --- a/server/typings/models/video/video-comment.ts +++ b/server/typings/models/video/video-comment.ts @@ -1,7 +1,7 @@ import { VideoCommentModel } from '../../../models/video/video-comment' -import { PickWith } from '../../utils' -import { MAccountDefault, MAccountFormattable } from '../account' -import { MVideoAccountLight, MVideoFeed, MVideoIdUrl } from './video' +import { PickWith, PickWithOpt } from '../../utils' +import { MAccountDefault, MAccountFormattable, MAccountUrl, MActorUrl } from '../account' +import { MVideoAccountLight, MVideoFeed, MVideoIdUrl, MVideoUrl } from './video' type Use = PickWith @@ -10,6 +10,7 @@ type Use = PickWith export type MCommentTotalReplies = MComment & { totalReplies?: number } export type MCommentId = Pick +export type MCommentUrl = Pick // ############################################################################ @@ -49,3 +50,8 @@ export type MCommentAPI = MComment & { totalReplies: number } export type MCommentFormattable = MCommentTotalReplies & Use<'Account', MAccountFormattable> + +export type MCommentAP = MComment & + Use<'Account', MAccountUrl> & + PickWithOpt & + PickWithOpt