1
0
Fork 0
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:
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

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