Fix video announces processing

This commit is contained in:
Chocobozzz 2018-01-26 17:48:41 +01:00
parent 0a67e28bee
commit 8dfd8fd7ca
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 2 deletions

View File

@ -279,11 +279,14 @@ async function addVideoShares (instance: VideoModel, shareUrls: string[]) {
const entry = {
actorId: actor.id,
videoId: instance.id
videoId: instance.id,
url: shareUrl
}
await VideoShareModel.findOrCreate({
where: entry,
where: {
url: shareUrl
},
defaults: entry
})
}