From 0f8d00e3144060270d7fe603865fccaf18649c47 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 13 Nov 2020 16:38:23 +0100 Subject: Implement video comment list in admin --- server/types/models/video/video-comment.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'server/types') diff --git a/server/types/models/video/video-comment.ts b/server/types/models/video/video-comment.ts index f1c50c753..83479e7b2 100644 --- a/server/types/models/video/video-comment.ts +++ b/server/types/models/video/video-comment.ts @@ -1,7 +1,7 @@ -import { VideoCommentModel } from '../../../models/video/video-comment' import { PickWith, PickWithOpt } from '@shared/core-utils' +import { VideoCommentModel } from '../../../models/video/video-comment' 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> & -- cgit v1.2.3