X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fmodels%2Fmoderation%2Fabuse.ts;h=8e12be87470dc6cfba0b42f51a823150bcb1c9e1;hb=57f6896f67cfc570cf3605dd94b0778101b2d9b9;hp=abbc93d6fba1c1f50bdd9626ba60e3d5ae6feac0;hpb=d95d15598847c7f020aa056e7e6e0c02d2bbf732;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/models/moderation/abuse.ts b/server/types/models/moderation/abuse.ts index abbc93d6f..8e12be874 100644 --- a/server/types/models/moderation/abuse.ts +++ b/server/types/models/moderation/abuse.ts @@ -3,7 +3,7 @@ import { VideoCommentAbuseModel } from '@server/models/abuse/video-comment-abuse import { PickWith } from '@shared/core-utils' import { AbuseModel } from '../../../models/abuse/abuse' import { MAccountDefault, MAccountFormattable, MAccountLight, MAccountUrl } from '../account' -import { MCommentOwner, MCommentUrl, MVideoUrl, MCommentOwnerVideo } from '../video' +import { MCommentOwner, MCommentUrl, MVideoUrl, MCommentOwnerVideo, MComment, MCommentVideo } from '../video' import { MVideo, MVideoAccountLightBlacklistAllFiles } from '../video/video' type Use = PickWith @@ -51,6 +51,10 @@ export type MCommentAbuseUrl = MCommentAbuse & UseCommentAbuse<'VideoComment', MCommentUrl> +export type MCommentAbuseFormattable = + MCommentAbuse & + UseCommentAbuse<'VideoComment', MComment & PickWith>> + // ############################################################################ export type MAbuseId = Pick @@ -94,4 +98,5 @@ export type MAbuseFull = export type MAbuseFormattable = MAbuse & Use<'ReporterAccount', MAccountFormattable> & - Use<'VideoAbuse', MVideoAbuseFormattable> + Use<'VideoAbuse', MVideoAbuseFormattable> & + Use<'VideoCommentAbuse', MCommentAbuseFormattable>