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:
parent
55d05f0476
commit
e346423db2
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue