title: $localize`Advanced filters`,
children: [
{
- queryParams: { search: 'state:pending' },
+ value: 'state:pending',
label: $localize`Unsolved reports`
},
{
- queryParams: { search: 'state:accepted' },
+ value: 'state:accepted',
label: $localize`Accepted reports`
},
{
- queryParams: { search: 'state:rejected' },
+ value: 'state:rejected',
label: $localize`Refused reports`
},
{
- queryParams: { search: 'videoIs:blacklisted' },
+ value: 'videoIs:blacklisted',
label: $localize`Reports with blocked videos`
},
{
- queryParams: { search: 'videoIs:deleted' },
+ value: 'videoIs:deleted',
label: $localize`Reports with deleted videos`
}
]
isLocalAbuse (abuse: AdminAbuse) {
if (this.viewType === 'user') return true
+ if (!abuse.reporterAccount) return false
return Actor.IS_LOCAL(abuse.reporterAccount.host)
}
label: $localize`Block video`,
isDisplayed: abuse => abuse.video && !abuse.video.deleted && !abuse.video.blacklisted,
handler: abuse => {
- this.videoBlocklistService.blockVideo(abuse.video.id, undefined, abuse.video.channel.isLocal)
+ this.videoBlocklistService.blockVideo([ { videoId: abuse.video.id, unfederate: abuse.video.channel.isLocal } ])
.subscribe({
next: () => {
this.notifier.success($localize`Video blocked.`)