aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-07 08:42:44 +0200
committerChocobozzz <me@florianbigard.com>2022-06-07 08:47:41 +0200
commit4d526901349b35bfac9811acc45854c65639cee3 (patch)
treeabacb1afe3dc585bed9f098ff99767b5d5506233 /server
parentceecd871a4be5445fb586f208f288fbe8d6f5a37 (diff)
downloadPeerTube-4d526901349b35bfac9811acc45854c65639cee3.tar.gz
PeerTube-4d526901349b35bfac9811acc45854c65639cee3.tar.zst
PeerTube-4d526901349b35bfac9811acc45854c65639cee3.zip
Fix schema.org context
Diffstat (limited to 'server')
-rw-r--r--server/lib/activitypub/context.ts2
-rw-r--r--server/tests/api/activitypub/helpers.ts1
2 files changed, 2 insertions, 1 deletions
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) {
179 179
180 { 180 {
181 pt: 'https://joinpeertube.org/ns#', 181 pt: 'https://joinpeertube.org/ns#',
182 sc: 'http://schema.org#', 182 sc: 'http://schema.org/',
183 183
184 ...contextValue 184 ...contextValue
185 } 185 }
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'
9import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto' 9import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto'
10 10
11describe('Test activity pub helpers', function () { 11describe('Test activity pub helpers', function () {
12
12 describe('When checking the Linked Signature', function () { 13 describe('When checking the Linked Signature', function () {
13 14
14 it('Should fail with an invalid Mastodon signature', async function () { 15 it('Should fail with an invalid Mastodon signature', async function () {