X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fshared%2Frequests.ts;h=57120cacacbaf84a785c513e8f95c2ed24238a57;hb=9295c68b74fe1f1e2e9f72009205d7f0379844c5;hp=7f1acc0e1333cd88f487903a54e5314c931f04e4;hpb=3318147300b4f998adf728eb0a5a14a4c1829c51;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/shared/requests.ts b/server/tests/shared/requests.ts index 7f1acc0e1..57120caca 100644 --- a/server/tests/shared/requests.ts +++ b/server/tests/shared/requests.ts @@ -1,7 +1,7 @@ -import { activityPubContextify } from '@server/helpers/activitypub' import { buildDigest } from '@server/helpers/peertube-crypto' import { doRequest } from '@server/helpers/requests' import { ACTIVITY_PUB, HTTP_SIGNATURE } from '@server/initializers/constants' +import { activityPubContextify } from '@server/lib/activitypub/context' export function makePOSTAPRequest (url: string, body: any, httpSignature: any, headers: any) { const options = { @@ -22,7 +22,7 @@ export async function makeFollowRequest (to: { url: string }, by: { url: string, object: to.url } - const body = activityPubContextify(follow) + const body = activityPubContextify(follow, 'Follow') const httpSignature = { algorithm: HTTP_SIGNATURE.ALGORITHM,