From 5fd4ca0051c7e7f3f8c47bcbde5cab0c56532e64 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 18 Apr 2020 22:57:20 +0200 Subject: Add nth abuse count for a given video, add reporter/reportee reports stats --- shared/models/videos/abuse/video-abuse.model.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'shared/models') diff --git a/shared/models/videos/abuse/video-abuse.model.ts b/shared/models/videos/abuse/video-abuse.model.ts index 953193e5e..f2c2cdc41 100644 --- a/shared/models/videos/abuse/video-abuse.model.ts +++ b/shared/models/videos/abuse/video-abuse.model.ts @@ -1,7 +1,7 @@ import { Account } from '../../actors/index' import { VideoConstant } from '../video-constant.model' import { VideoAbuseState } from './video-abuse-state.model' -import { VideoChannelSummary } from '../channel/video-channel.model' +import { VideoChannel } from '../channel/video-channel.model' export interface VideoAbuse { id: number @@ -19,8 +19,15 @@ export interface VideoAbuse { deleted: boolean blacklisted: boolean thumbnailPath?: string - channel?: VideoChannelSummary + channel?: VideoChannel } createdAt: Date + updatedAt: Date + + count?: number + nth?: number + + countReportsForReporter?: number + countReportsForReportee?: number } -- cgit v1.2.3