mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix auto block list link in notification email
This commit is contained in:
@@ -661,7 +661,7 @@ async function checkVideoAutoBlacklistForModerators (options: CheckerBaseParams
|
|||||||
|
|
||||||
function emailNotificationFinder (email: object) {
|
function emailNotificationFinder (email: object) {
|
||||||
const text = email['text']
|
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 })
|
await checkNotification({ ...options, notificationChecker, emailNotificationFinder })
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export class NewAutoBlacklistForModerators extends AbstractNotification <MVideoB
|
|||||||
}
|
}
|
||||||
|
|
||||||
async createEmail (to: string) {
|
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 videoUrl = WEBSERVER.URL + this.payload.Video.getWatchStaticPath()
|
||||||
const channel = await VideoChannelModel.loadAndPopulateAccount(this.payload.Video.channelId)
|
const channel = await VideoChannelModel.loadAndPopulateAccount(this.payload.Video.channelId)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user