licence,
language,
description,
- nsfw: videoObject.nsfw,
+ nsfw: videoObject.sensitive,
commentsEnabled: videoObject.commentsEnabled,
channelId: videoChannel.id,
duration: parseInt(duration, 10),
const entry = {
actorId: actor.id,
- videoId: instance.id
+ videoId: instance.id,
+ url: shareUrl
}
await VideoShareModel.findOrCreate({
- where: entry,
+ where: {
+ url: shareUrl
+ },
defaults: entry
})
}