diff options
Diffstat (limited to 'server/lib/activitypub/send/send-undo.ts')
-rw-r--r-- | server/lib/activitypub/send/send-undo.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/lib/activitypub/send/send-undo.ts b/server/lib/activitypub/send/send-undo.ts index 92271b700..3a0597fba 100644 --- a/server/lib/activitypub/send/send-undo.ts +++ b/server/lib/activitypub/send/send-undo.ts | |||
@@ -11,6 +11,7 @@ import { ActorFollowModel } from '../../../models/activitypub/actor-follow' | |||
11 | import { VideoModel } from '../../../models/video/video' | 11 | import { VideoModel } from '../../../models/video/video' |
12 | import { getActorFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url' | 12 | import { getActorFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url' |
13 | import { | 13 | import { |
14 | audiencify, | ||
14 | broadcastToFollowers, | 15 | broadcastToFollowers, |
15 | getActorsInvolvedInVideo, | 16 | getActorsInvolvedInVideo, |
16 | getAudience, | 17 | getAudience, |
@@ -112,12 +113,10 @@ async function undoActivityData ( | |||
112 | audience = await getAudience(byActor, t) | 113 | audience = await getAudience(byActor, t) |
113 | } | 114 | } |
114 | 115 | ||
115 | return { | 116 | return audiencify({ |
116 | type: 'Undo', | 117 | type: 'Undo', |
117 | id: url, | 118 | id: url, |
118 | actor: byActor.url, | 119 | actor: byActor.url, |
119 | to: audience.to, | ||
120 | cc: audience.cc, | ||
121 | object | 120 | object |
122 | } | 121 | }, audience) |
123 | } | 122 | } |