support type as override to search in listBlocks
[oweals/peertube.git] / client / src / app / shared / video-block / video-block.service.ts
index 31ccc84eadce9fecfaf39f90344ab756796677c0..d0673ddba8d9384cffb0f8ee56bf7a0119d71099 100644 (file)
@@ -43,6 +43,7 @@ export class VideoBlockService {
 
       params = this.restService.addObjectParams(params, filters)
     }
+    if (type) params = params.append('type', type.toString())
 
     return this.authHttp.get<ResultList<VideoBlacklist>>(VideoBlockService.BASE_VIDEOS_URL + 'blacklist', { params })
                .pipe(