projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a67e28
)
Fix video announces processing
author
Chocobozzz
<me@florianbigard.com>
Fri, 26 Jan 2018 16:48:41 +0000
(17:48 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 26 Jan 2018 16:48:41 +0000
(17:48 +0100)
server/lib/activitypub/videos.ts
patch
|
blob
|
history
diff --git
a/server/lib/activitypub/videos.ts
b/server/lib/activitypub/videos.ts
index c9c4674d94bf9ce6019bf33dabc5cb21fe6a25f3..40e9318e3817cd0234d2e344783bd893a095acf5 100644
(file)
--- a/
server/lib/activitypub/videos.ts
+++ b/
server/lib/activitypub/videos.ts
@@
-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
})
}