mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Status are sent to mastodon
This commit is contained in:
parent
ce33ee01cd
commit
e12a009254
20 changed files with 133 additions and 111 deletions
|
@ -11,6 +11,7 @@ import { ActorFollowModel } from '../../../models/activitypub/actor-follow'
|
|||
import { VideoModel } from '../../../models/video/video'
|
||||
import { getActorFollowActivityPubUrl, getUndoActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url'
|
||||
import {
|
||||
audiencify,
|
||||
broadcastToFollowers,
|
||||
getActorsInvolvedInVideo,
|
||||
getAudience,
|
||||
|
@ -112,12 +113,10 @@ async function undoActivityData (
|
|||
audience = await getAudience(byActor, t)
|
||||
}
|
||||
|
||||
return {
|
||||
return audiencify({
|
||||
type: 'Undo',
|
||||
id: url,
|
||||
actor: byActor.url,
|
||||
to: audience.to,
|
||||
cc: audience.cc,
|
||||
object
|
||||
}
|
||||
}, audience)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue