aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-30 14:15:17 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-30 14:15:17 +0100
commitfef2c7164e025b12a64185dbab058ef4129733c6 (patch)
treec9199f611af4334971dfffc71ea6920870a639c1 /server/lib
parentf00984c0077e9b666fe8005452768e53d1c3f421 (diff)
downloadPeerTube-fef2c7164e025b12a64185dbab058ef4129733c6.tar.gz
PeerTube-fef2c7164e025b12a64185dbab058ef4129733c6.tar.zst
PeerTube-fef2c7164e025b12a64185dbab058ef4129733c6.zip
Fix bad to/cc when undo dislike
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/send/send-undo.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/send/send-undo.ts b/server/lib/activitypub/send/send-undo.ts
index 2f5e6998e..015f02b35 100644
--- a/server/lib/activitypub/send/send-undo.ts
+++ b/server/lib/activitypub/send/send-undo.ts
@@ -67,9 +67,9 @@ async function sendUndoDislikeToOrigin (byAccount: AccountInstance, video: Video
67 const accountsInvolvedInVideo = await getAccountsInvolvedInVideo(video, t) 67 const accountsInvolvedInVideo = await getAccountsInvolvedInVideo(video, t)
68 const audience = getOriginVideoAudience(video, accountsInvolvedInVideo) 68 const audience = getOriginVideoAudience(video, accountsInvolvedInVideo)
69 const dislikeActivity = createDislikeActivityData(byAccount, video) 69 const dislikeActivity = createDislikeActivityData(byAccount, video)
70 const object = await createActivityData(undoUrl, byAccount, dislikeActivity, t, audience) 70 const object = await createActivityData(undoUrl, byAccount, dislikeActivity, t)
71 71
72 const data = await undoActivityData(undoUrl, byAccount, object, t) 72 const data = await undoActivityData(undoUrl, byAccount, object, t, audience)
73 73
74 return unicastTo(data, byAccount, video.VideoChannel.Account.sharedInboxUrl, t) 74 return unicastTo(data, byAccount, video.VideoChannel.Account.sharedInboxUrl, t)
75} 75}