Fix video announces processing
This commit is contained in:
parent
0a67e28bee
commit
8dfd8fd7ca
1 changed files with 5 additions and 2 deletions
|
@ -279,11 +279,14 @@ async function addVideoShares (instance: VideoModel, shareUrls: string[]) {
|
||||||
|
|
||||||
const entry = {
|
const entry = {
|
||||||
actorId: actor.id,
|
actorId: actor.id,
|
||||||
videoId: instance.id
|
videoId: instance.id,
|
||||||
|
url: shareUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
await VideoShareModel.findOrCreate({
|
await VideoShareModel.findOrCreate({
|
||||||
where: entry,
|
where: {
|
||||||
|
url: shareUrl
|
||||||
|
},
|
||||||
defaults: entry
|
defaults: entry
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue