diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-09 16:07:10 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-10 21:12:09 +0200 |
commit | 3487330d308166afb542cbacae0475693c0b059e (patch) | |
tree | 6a7b6ea3dd105661354bf0df6c6d3f7a7abe64e8 /shared/extra-utils | |
parent | 5baee5fca418487e72ddcd6419d31bca8659b668 (diff) | |
download | PeerTube-3487330d308166afb542cbacae0475693c0b059e.tar.gz PeerTube-3487330d308166afb542cbacae0475693c0b059e.tar.zst PeerTube-3487330d308166afb542cbacae0475693c0b059e.zip |
preserve original variable names server-side
Diffstat (limited to 'shared/extra-utils')
-rw-r--r-- | shared/extra-utils/users/user-notifications.ts | 6 | ||||
-rw-r--r-- | shared/extra-utils/videos/video-blacklist.ts | 4 |
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 6f85bd450..bd00894c4 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 | ||
457 | async function checkVideoAutoBlacklistForModerators (base: CheckerBaseParams, videoUUID: string, videoName: string, type: CheckerType) { | 457 | async function checkVideoAutoBlacklistForModerators (base: CheckerBaseParams, videoUUID: string, videoName: string, type: CheckerType) { |
458 | const notificationType = UserNotificationType.VIDEO_AUTO_BLOCK_FOR_MODERATORS | 458 | const notificationType = UserNotificationType.VIDEO_AUTO_BLACKLIST_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.BLOCK_ON_MY_VIDEO | 489 | ? UserNotificationType.BLACKLIST_ON_MY_VIDEO |
490 | : UserNotificationType.UNBLOCK_ON_MY_VIDEO | 490 | : UserNotificationType.UNBLACKLIST_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 c06b2aa5d..ba139ef95 100644 --- a/shared/extra-utils/videos/video-blacklist.ts +++ b/shared/extra-utils/videos/video-blacklist.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | import { VideoBlockType } from '../../models/videos' | 2 | import { VideoBlacklistType } from '../../models/videos' |
3 | import { makeGetRequest } from '..' | 3 | import { makeGetRequest } from '..' |
4 | 4 | ||
5 | function addVideoToBlacklist ( | 5 | function 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?: VideoBlockType | 48 | type?: VideoBlacklistType |
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 |