From 4d526901349b35bfac9811acc45854c65639cee3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Jun 2022 08:42:44 +0200 Subject: [PATCH] Fix schema.org context --- server/lib/activitypub/context.ts | 2 +- server/tests/api/activitypub/helpers.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/lib/activitypub/context.ts b/server/lib/activitypub/context.ts index b452cf9b3..5d6aee315 100644 --- a/server/lib/activitypub/context.ts +++ b/server/lib/activitypub/context.ts @@ -179,7 +179,7 @@ function buildContext (contextValue?: ContextValue) { { pt: 'https://joinpeertube.org/ns#', - sc: 'http://schema.org#', + sc: 'http://schema.org/', ...contextValue } diff --git a/server/tests/api/activitypub/helpers.ts b/server/tests/api/activitypub/helpers.ts index bc1de35d1..56de7a879 100644 --- a/server/tests/api/activitypub/helpers.ts +++ b/server/tests/api/activitypub/helpers.ts @@ -9,6 +9,7 @@ import { buildAbsoluteFixturePath } from '@shared/core-utils' import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto' describe('Test activity pub helpers', function () { + describe('When checking the Linked Signature', function () { it('Should fail with an invalid Mastodon signature', async function () {