mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
expliciting type checks and predicates (server only)
This commit is contained in:
parent
5f7021c33d
commit
c1e791bad0
34 changed files with 127 additions and 84 deletions
|
@ -91,9 +91,10 @@ class Emailer {
|
|||
|
||||
async addVideoAbuseReport (videoId: number) {
|
||||
const video = await VideoModel.load(videoId)
|
||||
if (!video) throw new Error('Unknown Video id during Abuse report.')
|
||||
|
||||
const text = `Hi,\n\n` +
|
||||
`Your instance received an abuse for video the following video ${video.url}\n\n` +
|
||||
`Your instance received an abuse for the following video ${video.url}\n\n` +
|
||||
`Cheers,\n` +
|
||||
`PeerTube.`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue