Only show updatedAt date of abuse if different from createdAt

pull/2737/head
Rigel Kent 2020-05-03 16:23:09 +02:00 committed by Rigel Kent
parent d405118360
commit 0db536f1e0
3 changed files with 2 additions and 2 deletions

View File

@ -289,6 +289,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit, AfterV
embedHtml: this.sanitizer.bypassSecurityTrustHtml(this.getVideoEmbed(abuse)),
reporterAccount: new Account(abuse.reporterAccount)
})
if (abuse.updatedAt === abuse.createdAt) delete abuse.updatedAt
}
},

View File

@ -32,7 +32,6 @@ export class VideoAbuseService {
return this.authHttp.get<ResultList<VideoAbuse>>(url, { params })
.pipe(
map(res => this.restExtractor.convertResultListDateToHuman(res)),
catchError(res => this.restExtractor.handleError(res))
)
}

View File

@ -23,7 +23,7 @@ export interface VideoAbuse {
}
createdAt: Date
updatedAt: Date
updatedAt?: Date
count?: number
nth?: number