tinkering with format
This commit is contained in:
parent
a733e29463
commit
25e1e13e6e
@ -1,9 +1,11 @@
|
|||||||
export function onRequest(context) {
|
export function onRequest(context) {
|
||||||
return new Response(
|
return new Response(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
"@context": ["https://www.w3.org/ns/activitystreams", { "@language": "en-CA" }],
|
"@context": ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1" ],
|
||||||
"type": "Person",
|
"type": "Person",
|
||||||
|
"manuallyApprovesFollowers": true,
|
||||||
"id": "https://ewpratten.com/api/activitypub/users/evan",
|
"id": "https://ewpratten.com/api/activitypub/users/evan",
|
||||||
|
"outbox": "https://ewpratten.com/api/activitypub/inbox",
|
||||||
"outbox": "https://ewpratten.com/api/activitypub/outbox",
|
"outbox": "https://ewpratten.com/api/activitypub/outbox",
|
||||||
"preferredUsername": "evan",
|
"preferredUsername": "evan",
|
||||||
"name": "Evan Pratten",
|
"name": "Evan Pratten",
|
||||||
@ -12,11 +14,10 @@ export function onRequest(context) {
|
|||||||
"https://ewpratten.com/images/pfp/2022/460x460.webp"
|
"https://ewpratten.com/images/pfp/2022/460x460.webp"
|
||||||
],
|
],
|
||||||
"publicKey": {
|
"publicKey": {
|
||||||
"@context": "https://w3id.org/security/v1",
|
|
||||||
"@type": "Key",
|
"@type": "Key",
|
||||||
"id": "https://ewpratten.com/api/activitypub/users/evan#main-key",
|
"id": "https://ewpratten.com/api/activitypub/users/evan#main-key",
|
||||||
"owner": "https://ewpratten.com/api/activitypub/users/evan",
|
"owner": "https://ewpratten.com/api/activitypub/users/evan",
|
||||||
"publicKeyPem": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJwe4jxrpiDx0vzqnoc+3Mja7Xz73/NxfDqG9Mu+k6Vs87N/+kV4BbsbJ/vtdYAg58+iMDmyRw48CzaXkPDgiCh3RZFc/8GniBSEucjt/QEiAitV48aykqWyXtln0hAmQrjoEeE9DRxS3eyF7FVE2GhkTz1YqBabOMpHA1uGOp7QIDAQAB"
|
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJwe4jxrpiDx0vzqnoc+3Mja7X\nz73/NxfDqG9Mu+k6Vs87N/+kV4BbsbJ/vtdYAg58+iMDmyRw48CzaXkPDgiCh3RZ\nFc/8GniBSEucjt/QEiAitV48aykqWyXtln0hAmQrjoEeE9DRxS3eyF7FVE2GhkTz\n1YqBabOMpHA1uGOp7QIDAQAB\n-----END PUBLIC KEY-----"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user