aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
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 /client/src
parentd405118360b7356d86cd570ceb665d38cc1c17f7 (diff)
downloadPeerTube-0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d.tar.gz
PeerTube-0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d.tar.zst
PeerTube-0db536f1e00e2f0c019b5ea3807f1d9125ff4f1d.zip
Only show updatedAt date of abuse if different from createdAt
Diffstat (limited to 'client/src')
-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
2 files changed, 1 insertions, 1 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 }