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 () {