X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Factivitypub.ts;h=97c809a0c51fae1eaf6e2d5b0f70617f282c448e;hb=32c68d67d9125df62ead71668efca4da30132786;hp=951a25669d4e2efb3e079c0cf7f9a748f63b0921;hpb=74dc3bca2b14f5fd3fe80c394dfc34177a46db77;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index 951a25669..97c809a0c 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts @@ -7,6 +7,7 @@ import { ActorModel } from '../models/activitypub/actor' import { signJsonLDObject } from './peertube-crypto' import { pageToStartAndCount } from './core-utils' import { parse } from 'url' +import { MActor } from '../typings/models' function activityPubContextify (data: T) { return Object.assign(data, { @@ -143,7 +144,7 @@ async function activityPubCollectionPagination (baseUrl: string, handler: Activi } -function buildSignedActivity (byActor: ActorModel, data: Object) { +function buildSignedActivity (byActor: MActor, data: Object) { const activity = activityPubContextify(data) return signJsonLDObject(byActor, activity) as Promise