Only show updatedAt date of abuse if different from createdAt
This commit is contained in:
parent
d405118360
commit
0db536f1e0
|
@ -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
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
@ -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))
|
||||
)
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ export interface VideoAbuse {
|
|||
}
|
||||
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
updatedAt?: Date
|
||||
|
||||
count?: number
|
||||
nth?: number
|
||||
|
|
Loading…
Reference in New Issue