diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-18 22:57:20 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | 5fd4ca0051c7e7f3f8c47bcbde5cab0c56532e64 (patch) | |
tree | 1a62c391b834589532a074355bc218352b17b1e9 /shared/models | |
parent | 844db39ee56ff0dd59a96acfc68f10f9ac53000b (diff) | |
download | PeerTube-5fd4ca0051c7e7f3f8c47bcbde5cab0c56532e64.tar.gz PeerTube-5fd4ca0051c7e7f3f8c47bcbde5cab0c56532e64.tar.zst PeerTube-5fd4ca0051c7e7f3f8c47bcbde5cab0c56532e64.zip |
Add nth abuse count for a given video, add reporter/reportee reports stats
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/videos/abuse/video-abuse.model.ts | 11 |
1 files changed, 9 insertions, 2 deletions
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 @@ | |||
1 | import { Account } from '../../actors/index' | 1 | import { Account } from '../../actors/index' |
2 | import { VideoConstant } from '../video-constant.model' | 2 | import { VideoConstant } from '../video-constant.model' |
3 | import { VideoAbuseState } from './video-abuse-state.model' | 3 | import { VideoAbuseState } from './video-abuse-state.model' |
4 | import { VideoChannelSummary } from '../channel/video-channel.model' | 4 | import { VideoChannel } from '../channel/video-channel.model' |
5 | 5 | ||
6 | export interface VideoAbuse { | 6 | export interface VideoAbuse { |
7 | id: number | 7 | id: number |
@@ -19,8 +19,15 @@ export interface VideoAbuse { | |||
19 | deleted: boolean | 19 | deleted: boolean |
20 | blacklisted: boolean | 20 | blacklisted: boolean |
21 | thumbnailPath?: string | 21 | thumbnailPath?: string |
22 | channel?: VideoChannelSummary | 22 | channel?: VideoChannel |
23 | } | 23 | } |
24 | 24 | ||
25 | createdAt: Date | 25 | createdAt: Date |
26 | updatedAt: Date | ||
27 | |||
28 | count?: number | ||
29 | nth?: number | ||
30 | |||
31 | countReportsForReporter?: number | ||
32 | countReportsForReportee?: number | ||
26 | } | 33 | } |