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)),
|
embedHtml: this.sanitizer.bypassSecurityTrustHtml(this.getVideoEmbed(abuse)),
|
||||||
reporterAccount: new Account(abuse.reporterAccount)
|
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 })
|
return this.authHttp.get<ResultList<VideoAbuse>>(url, { params })
|
||||||
.pipe(
|
.pipe(
|
||||||
map(res => this.restExtractor.convertResultListDateToHuman(res)),
|
|
||||||
catchError(res => this.restExtractor.handleError(res))
|
catchError(res => this.restExtractor.handleError(res))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ export interface VideoAbuse {
|
||||||
}
|
}
|
||||||
|
|
||||||
createdAt: Date
|
createdAt: Date
|
||||||
updatedAt: Date
|
updatedAt?: Date
|
||||||
|
|
||||||
count?: number
|
count?: number
|
||||||
nth?: number
|
nth?: number
|
||||||
|
|
Loading…
Reference in New Issue