aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video.js')
-rw-r--r--server/models/video.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/models/video.js b/server/models/video.js
index 3fe8368c7..4c197a835 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -248,6 +248,14 @@ function associate (models) {
248 through: models.VideoTag, 248 through: models.VideoTag,
249 onDelete: 'cascade' 249 onDelete: 'cascade'
250 }) 250 })
251
252 this.hasMany(models.VideoAbuse, {
253 foreignKey: {
254 name: 'videoId',
255 allowNull: false
256 },
257 onDelete: 'cascade'
258 })
251} 259}
252 260
253function generateMagnetUri () { 261function generateMagnetUri () {