aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-05-03 16:23:09 +0200
committerRigel Kent <par@rigelk.eu>2020-05-04 15:01:44 +0200
commit0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d (patch)
treedcd1493bc6d24cfa835d137ee133e01d4365e324
parentd405118360b7356d86cd570ceb665d38cc1c17f7 (diff)
downloadPeerTube-0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d.tar.gz
PeerTube-0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d.tar.zst
PeerTube-0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d.zip
Only show updatedAt date of abuse if different from createdAt
-rw-r--r--client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts1
-rw-r--r--client/src/app/shared/video-abuse/video-abuse.service.ts1
-rw-r--r--shared/models/videos/abuse/video-abuse.model.ts2
3 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
index e87163c4f..83d194d52 100644
--- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
+++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
@@ -289,6 +289,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit, AfterV
289 embedHtml: this.sanitizer.bypassSecurityTrustHtml(this.getVideoEmbed(abuse)), 289 embedHtml: this.sanitizer.bypassSecurityTrustHtml(this.getVideoEmbed(abuse)),
290 reporterAccount: new Account(abuse.reporterAccount) 290 reporterAccount: new Account(abuse.reporterAccount)
291 }) 291 })
292 if (abuse.updatedAt === abuse.createdAt) delete abuse.updatedAt
292 } 293 }
293 294
294 }, 295 },
diff --git a/client/src/app/shared/video-abuse/video-abuse.service.ts b/client/src/app/shared/video-abuse/video-abuse.service.ts
index a39ad31d4..1ab6b5376 100644
--- a/client/src/app/shared/video-abuse/video-abuse.service.ts
+++ b/client/src/app/shared/video-abuse/video-abuse.service.ts
@@ -32,7 +32,6 @@ export class VideoAbuseService {
32 32
33 return this.authHttp.get<ResultList<VideoAbuse>>(url, { params }) 33 return this.authHttp.get<ResultList<VideoAbuse>>(url, { params })
34 .pipe( 34 .pipe(
35 map(res => this.restExtractor.convertResultListDateToHuman(res)),
36 catchError(res => this.restExtractor.handleError(res)) 35 catchError(res => this.restExtractor.handleError(res))
37 ) 36 )
38 } 37 }
diff --git a/shared/models/videos/abuse/video-abuse.model.ts b/shared/models/videos/abuse/video-abuse.model.ts
index f2c2cdc41..bbef7f4f9 100644
--- a/shared/models/videos/abuse/video-abuse.model.ts
+++ b/shared/models/videos/abuse/video-abuse.model.ts
@@ -23,7 +23,7 @@ export interface VideoAbuse {
23 } 23 }
24 24
25 createdAt: Date 25 createdAt: Date
26 updatedAt: Date 26 updatedAt?: Date
27 27
28 count?: number 28 count?: number
29 nth?: number 29 nth?: number