Skip to content

Commit

Permalink
Fix auto block list link in notification email
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jan 13, 2025
1 parent ceb49f4 commit 0380d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tests/src/shared/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ async function checkVideoAutoBlacklistForModerators (options: CheckerBaseParams

function emailNotificationFinder (email: object) {
const text = email['text']
return text.indexOf(shortUUID) !== -1 && email['text'].indexOf('moderation/video-blocklist') !== -1
return text.indexOf(shortUUID) !== -1 && email['text'].indexOf('moderation/video-blocks/list') !== -1
}

await checkNotification({ ...options, notificationChecker, emailNotificationFinder })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class NewAutoBlacklistForModerators extends AbstractNotification <MVideoB
}

async createEmail (to: string) {
const videoAutoBlacklistUrl = WEBSERVER.URL + '/admin/moderation/video-blocklist'
const videoAutoBlacklistUrl = WEBSERVER.URL + '/admin/moderation/video-blocks/list'
const videoUrl = WEBSERVER.URL + this.payload.Video.getWatchStaticPath()
const channel = await VideoChannelModel.loadAndPopulateAccount(this.payload.Video.channelId)

Expand Down

0 comments on commit 0380d02

Please sign in to comment.