0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-30 22:34:01 -05:00

Added missing JSON-LD context for publicKey definition

ref https://linear.app/tryghost/issue/MOM-25

This _might_ be the reason that Mastodon doesn't recognise our Actor, but
either way it's the correct thing to do so that JSON-LD parsers correctly
understand that publicKey field
This commit is contained in:
Fabien O'Carroll 2024-04-18 16:37:56 +07:00 committed by Fabien 'egg' O'Carroll
parent 55d05f0476
commit e346423db2

View file

@ -29,7 +29,10 @@ export class Actor extends Entity<ActorData> {
const outbox = new URL(`outbox/${id}`, url.href);
return {
'@context': 'https://www.w3.org/ns/activitystreams',
'@context': [
'https://www.w3.org/ns/activitystreams',
'https://w3id.org/security/v1'
],
type: 'Person',
id: actor.href,
inbox: inbox.href,