aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/users/user-notifications.ts6
-rw-r--r--shared/extra-utils/videos/video-blacklist.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/shared/extra-utils/users/user-notifications.ts b/shared/extra-utils/users/user-notifications.ts
index bd00894c4..6f85bd450 100644
--- a/shared/extra-utils/users/user-notifications.ts
+++ b/shared/extra-utils/users/user-notifications.ts
@@ -455,7 +455,7 @@ async function checkNewVideoAbuseForModerators (base: CheckerBaseParams, videoUU
455} 455}
456 456
457async function checkVideoAutoBlacklistForModerators (base: CheckerBaseParams, videoUUID: string, videoName: string, type: CheckerType) { 457async function checkVideoAutoBlacklistForModerators (base: CheckerBaseParams, videoUUID: string, videoName: string, type: CheckerType) {
458 const notificationType = UserNotificationType.VIDEO_AUTO_BLACKLIST_FOR_MODERATORS 458 const notificationType = UserNotificationType.VIDEO_AUTO_BLOCK_FOR_MODERATORS
459 459
460 function notificationChecker (notification: UserNotification, type: CheckerType) { 460 function notificationChecker (notification: UserNotification, type: CheckerType) {
461 if (type === 'presence') { 461 if (type === 'presence') {
@@ -486,8 +486,8 @@ async function checkNewBlacklistOnMyVideo (
486 blacklistType: 'blacklist' | 'unblacklist' 486 blacklistType: 'blacklist' | 'unblacklist'
487) { 487) {
488 const notificationType = blacklistType === 'blacklist' 488 const notificationType = blacklistType === 'blacklist'
489 ? UserNotificationType.BLACKLIST_ON_MY_VIDEO 489 ? UserNotificationType.BLOCK_ON_MY_VIDEO
490 : UserNotificationType.UNBLACKLIST_ON_MY_VIDEO 490 : UserNotificationType.UNBLOCK_ON_MY_VIDEO
491 491
492 function notificationChecker (notification: UserNotification) { 492 function notificationChecker (notification: UserNotification) {
493 expect(notification).to.not.be.undefined 493 expect(notification).to.not.be.undefined
diff --git a/shared/extra-utils/videos/video-blacklist.ts b/shared/extra-utils/videos/video-blacklist.ts
index ba139ef95..c06b2aa5d 100644
--- a/shared/extra-utils/videos/video-blacklist.ts
+++ b/shared/extra-utils/videos/video-blacklist.ts
@@ -1,5 +1,5 @@
1import * as request from 'supertest' 1import * as request from 'supertest'
2import { VideoBlacklistType } from '../../models/videos' 2import { VideoBlockType } from '../../models/videos'
3import { makeGetRequest } from '..' 3import { makeGetRequest } from '..'
4 4
5function addVideoToBlacklist ( 5function addVideoToBlacklist (
@@ -45,7 +45,7 @@ function getBlacklistedVideosList (parameters: {
45 url: string 45 url: string
46 token: string 46 token: string
47 sort?: string 47 sort?: string
48 type?: VideoBlacklistType 48 type?: VideoBlockType
49 specialStatus?: number 49 specialStatus?: number
50}) { 50}) {
51 const { url, token, sort, type, specialStatus = 200 } = parameters 51 const { url, token, sort, type, specialStatus = 200 } = parameters