X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fmodels%2Fvideo%2Fvideo-comment.ts;h=83479e7b2a3062efba7910cff4c29fd4d1e4003f;hb=cf21b2cbef61929177b9c09b5e017c3b7eb8535d;hp=d6e0b66f545aeaadf5aa05db03bd039887b046b3;hpb=26d6bf6533023326fa017812cf31bbe20c752d36;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/models/video/video-comment.ts b/server/types/models/video/video-comment.ts index d6e0b66f5..83479e7b2 100644 --- a/server/types/models/video/video-comment.ts +++ b/server/types/models/video/video-comment.ts @@ -1,7 +1,7 @@ +import { PickWith, PickWithOpt } from '@shared/core-utils' import { VideoCommentModel } from '../../../models/video/video-comment' -import { PickWith, PickWithOpt } from '../../utils' import { MAccountDefault, MAccountFormattable, MAccountUrl } from '../account' -import { MVideoAccountLight, MVideoFeed, MVideoIdUrl, MVideoUrl } from './video' +import { MVideo, MVideoAccountLight, MVideoFeed, MVideoIdUrl, MVideoUrl } from './video' type Use = PickWith @@ -59,6 +59,11 @@ export type MCommentFormattable = MCommentTotalReplies & Use<'Account', MAccountFormattable> +export type MCommentAdminFormattable = + MComment & + Use<'Account', MAccountFormattable> & + Use<'Video', MVideo> + export type MCommentAP = MComment & Use<'Account', MAccountUrl> &