mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 15:05:45 +00:00
6ca709816f
Validate the content-type of the response when fetching an object, according to https://www.w3.org/TR/activitypub/#x3-2-retrieving-objects. content-type headers had to be added to many mocks in order to support this, some of this was done with a regex. While I did go over the resulting files to check I didn't modify anything unrelated, there is a possibility I missed something. Closes pleroma#1948
27 lines
928 B
JSON
27 lines
928 B
JSON
{
|
|
"@context": [
|
|
"https://www.w3.org/ns/activitystreams",
|
|
"https://patch.cx/schemas/litepub-0.1.jsonld",
|
|
{
|
|
"@language": "und"
|
|
}
|
|
],
|
|
"actor": "https://patch.cx/users/rin",
|
|
"attachment": [],
|
|
"attributedTo": "https://patch.cx/users/rin",
|
|
"cc": [
|
|
"https://patch.cx/users/rin/followers"
|
|
],
|
|
"content": "Oracle Corporation (NYSE: ORCL) today announced that it has signed a definitive merger agreement to acquire Pleroma AG (FRA: PLA), for $26.50 per share (approximately $10.3 billion). The transaction has been approved by the boards of directors of both companies and should close by early January.",
|
|
"context": "https://patch.cx/contexts/spoof",
|
|
"id": "https://patch.cx/objects/spoof",
|
|
"published": "2020-10-23T18:02:06.038856Z",
|
|
"sensitive": false,
|
|
"summary": "Oracle buys Pleroma",
|
|
"tag": [],
|
|
"to": [
|
|
"https://www.w3.org/ns/activitystreams#Public"
|
|
],
|
|
"type": "Note"
|
|
}
|