mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Federate video abuses
This commit is contained in:
parent
d7d5611c8a
commit
21e0727a84
7 changed files with 28 additions and 12 deletions
|
@ -75,6 +75,7 @@ async function reportVideoAbuse (req: express.Request, res: express.Response) {
|
|||
|
||||
await db.sequelize.transaction(async t => {
|
||||
const videoAbuseInstance = await db.VideoAbuse.create(abuseToCreate, { transaction: t })
|
||||
videoAbuseInstance.Video = videoInstance
|
||||
|
||||
// We send the video abuse to the origin server
|
||||
if (videoInstance.isOwned() === false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue