mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +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
|
@ -4,6 +4,7 @@ import { ActorModel } from '../../../models/activitypub/actor'
|
|||
import { VideoModel } from '../../../models/video/video'
|
||||
import { getVideoLikeActivityPubUrl } from '../url'
|
||||
import {
|
||||
audiencify,
|
||||
broadcastToFollowers,
|
||||
getActorsInvolvedInVideo,
|
||||
getAudience,
|
||||
|
@ -44,14 +45,12 @@ async function likeActivityData (
|
|||
audience = await getAudience(byActor, t)
|
||||
}
|
||||
|
||||
return {
|
||||
return audiencify({
|
||||
type: 'Like',
|
||||
id: url,
|
||||
actor: byActor.url,
|
||||
to: audience.to,
|
||||
cc: audience.cc,
|
||||
object: video.url
|
||||
}
|
||||
}, audience)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue