refactor: 📝 Use new Versia content-type everywhere
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-05-13 15:31:35 +02:00
parent e138e9e7c3
commit c6c5945bef
No known key found for this signature in database
3 changed files with 8 additions and 8 deletions

View file

@ -37,7 +37,7 @@ export const metadata = {
```http {{ 'title': 'Example response' }}
HTTP/1.1 200 OK
Content-Type: application/vnd.versia+json
Content-Type: application/vnd.versia+json; charset=utf-8
{
"type": "InstanceMetadata",
@ -81,7 +81,7 @@ export const metadata = {
```http {{ 'title': 'Example response' }}
HTTP/1.1 200 OK
Content-Type: application/vnd.versia+json
Content-Type: application/vnd.versia+json; charset=utf-8
{
"type": "User",
@ -125,7 +125,7 @@ export const metadata = {
```http {{ 'title': 'Example response' }}
HTTP/1.1 200 OK
Content-Type: application/vnd.versia+json
Content-Type: application/vnd.versia+json; charset=utf-8
{
"type": "Followers",
@ -173,7 +173,7 @@ The delivery mechanism is described further in the [Federation](/federation) doc
POST /.versia/v0.6/inbox
Host: b.social
Accept: application/vnd.versia+json
Content-Type: application/vnd.versia+json
Content-Type: application/vnd.versia+json; charset=utf-8
{
"type": "Note",

View file

@ -24,7 +24,7 @@ Accept: application/jrd+json
{
"subject": "acct:george@versia.social", // [!code focus:6]
"aliases": [
"https://versia.social/users/018ec082-0ae1-761c-b2c5-22275a611771",
"https://versia.social/.versia/v0.6/entities/User/018ec082-0ae1-761c-b2c5-22275a611771",
"https://versia.social/@george"
],
"links": [
@ -35,8 +35,8 @@ Accept: application/jrd+json
},
{ // [!code focus:5]
"rel": "self",
"type": "application/json",
"href": "https://versia.social/users/018ec082-0ae1-761c-b2c5-22275a611771"
"type": "application/vnd.versia+json",
"href": "https://versia.social/.versia/v0.6/entities/User/018ec082-0ae1-761c-b2c5-22275a611771"
},
{
"rel": "http://webfinger.net/rel/avatar",

View file

@ -116,7 +116,7 @@ const headers = new Headers();
headers.set("Versia-Signed-By", "bob.com");
headers.set("Versia-Signed-At", timestamp);
headers.set("Versia-Signature", base64Signature);
headers.set("Content-Type", "application/json");
headers.set("Content-Type", "application/vnd.versia+json; charset=utf-8");
const response = await fetch("https://alice.com/.versia/v0.6/inbox", {
method: "POST",