1
0
Fork 0
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:
Chocobozzz 2017-12-19 10:34:56 +01:00
parent ce33ee01cd
commit e12a009254
No known key found for this signature in database
GPG key ID: 583A612D890159BE
20 changed files with 133 additions and 111 deletions

View file

@ -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)
}
// ---------------------------------------------------------------------------