aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-26 14:08:35 +0200
committerChocobozzz <me@florianbigard.com>2018-09-26 14:08:35 +0200
commit2e7cf5ae0cf8fbc9526742b67a0079d42211644c (patch)
tree5a7ad1a7c7033f3b6f894be8cfecb2af8f337da4 /server/lib
parent60e74f80d87cdb366a70a48e4316bb0dff4cab16 (diff)
downloadPeerTube-2e7cf5ae0cf8fbc9526742b67a0079d42211644c.tar.gz
PeerTube-2e7cf5ae0cf8fbc9526742b67a0079d42211644c.tar.zst
PeerTube-2e7cf5ae0cf8fbc9526742b67a0079d42211644c.zip
Fix video files duplicated when fps is null
Null values are not considered equal in a UNIQUE index
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts
index db72ef23c..3dccabe12 100644
--- a/server/lib/activitypub/videos.ts
+++ b/server/lib/activitypub/videos.ts
@@ -478,7 +478,7 @@ function videoFileActivityUrlToDBAttributes (videoCreated: VideoModel, videoObje
478 resolution: fileUrl.height, 478 resolution: fileUrl.height,
479 size: fileUrl.size, 479 size: fileUrl.size,
480 videoId: videoCreated.id, 480 videoId: videoCreated.id,
481 fps: fileUrl.fps 481 fps: fileUrl.fps || -1
482 } as VideoFileModel 482 } as VideoFileModel
483 attributes.push(attribute) 483 attributes.push(attribute)
484 } 484 }