mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add tests when getting a blacklisted video
This commit is contained in:
@@ -138,6 +138,8 @@ class Emailer {
|
||||
async addVideoUnblacklistReportJob (videoId: number) {
|
||||
const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoId)
|
||||
if (!video) throw new Error('Unknown Video id during Blacklist report.')
|
||||
// It's not our user
|
||||
if (video.remote === true) return
|
||||
|
||||
const user = await UserModel.loadById(video.VideoChannel.Account.userId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user