mirror of https://gitlab.com/bashrc2/epicyon
Consistent paths
parent
61fffa0978
commit
db2de66cc6
|
@ -284,14 +284,14 @@ As an example, if example.com receives the activity
|
||||||
{
|
{
|
||||||
"@context": "https://www.w3.org/ns/activitystreams",
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
"type": "Like",
|
"type": "Like",
|
||||||
"actor": "https://example.net/users/~mallory",
|
"actor": "https://example.net/users/mallory",
|
||||||
"to": ["https://hatchat.example/sarah",
|
"to": ["https://hatchat.example/users/sarah",
|
||||||
"https://example.com/peeps/john"],
|
"https://example.com/users/john"],
|
||||||
"object": {
|
"object": {
|
||||||
"@context": {"@language": "en"},
|
"@context": {"@language": "en"},
|
||||||
"id": "https://example.org/users/~alice/note/23",
|
"id": "https://example.org/users/alice/note/23",
|
||||||
"type": "Note",
|
"type": "Note",
|
||||||
"attributedTo": "https://example.org/users/~alice",
|
"attributedTo": "https://example.org/users/alice",
|
||||||
"mediaType": "text/html",
|
"mediaType": "text/html",
|
||||||
"content": "I'm a goat"
|
"content": "I'm a goat"
|
||||||
}
|
}
|
||||||
|
@ -633,9 +633,8 @@ Content-Type: application/ld+json; profile="https://www.w3.org/ns/activitystream
|
||||||
"name": "Chris liked 'Minimal ActivityPub update client'",
|
"name": "Chris liked 'Minimal ActivityPub update client'",
|
||||||
"object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
|
"object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
|
||||||
"to": ["https://rhiaro.co.uk/@amy",
|
"to": ["https://rhiaro.co.uk/@amy",
|
||||||
"https://dustycloud.org/followers",
|
"https://dustycloud.org/users/chris/followers"],
|
||||||
"https://rhiaro.co.uk/followers/"],
|
"cc": ["https://e14n.com/@evan"]
|
||||||
"cc": "https://e14n.com/evan"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
If an Activity is submitted with a value in the `id` property, servers *MUST* ignore this and generate a new `id` for the Activity. Servers *MUST* return a `201 Created` HTTP code, and unless the activity is transient, *MUST* include the new `id` in the `Location` header.
|
If an Activity is submitted with a value in the `id` property, servers *MUST* ignore this and generate a new `id` for the Activity. Servers *MUST* return a `201 Created` HTTP code, and unless the activity is transient, *MUST* include the new `id` in the `Location` header.
|
||||||
|
@ -676,8 +675,8 @@ For example, when Chris likes the following article by Amy:
|
||||||
"name": "Minimal ActivityPub update client",
|
"name": "Minimal ActivityPub update client",
|
||||||
"content": "Today I finished morph, a client for posting ActivityStreams2...",
|
"content": "Today I finished morph, a client for posting ActivityStreams2...",
|
||||||
"attributedTo": "https://rhiaro.co.uk/@amy",
|
"attributedTo": "https://rhiaro.co.uk/@amy",
|
||||||
"to": "https://rhiaro.co.uk/followers/",
|
"to": ["https://rhiaro.co.uk/followers"],
|
||||||
"cc": "https://e14n.com/evan"
|
"cc": ["https://e14n.com/@evan"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -693,9 +692,8 @@ the like is generated by the client as:
|
||||||
"summary": "Chris liked 'Minimal ActivityPub update client'",
|
"summary": "Chris liked 'Minimal ActivityPub update client'",
|
||||||
"object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
|
"object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
|
||||||
"to": ["https://rhiaro.co.uk/@amy",
|
"to": ["https://rhiaro.co.uk/@amy",
|
||||||
"https://dustycloud.org/followers",
|
"https://dustycloud.org/users/chris/followers"],
|
||||||
"https://rhiaro.co.uk/followers/"],
|
"cc": ["https://e14n.com/@evan"]
|
||||||
"cc": "https://e14n.com/evan"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -728,8 +726,8 @@ Any `to`, `bto`, `cc`, `bcc`, and `audience` properties specified on the object
|
||||||
"type": "Note",
|
"type": "Note",
|
||||||
"content": "This is a note",
|
"content": "This is a note",
|
||||||
"published": "2015-02-10T15:04:55Z",
|
"published": "2015-02-10T15:04:55Z",
|
||||||
"to": ["https://example.org/~john/"],
|
"to": ["https://example.org/@john/"],
|
||||||
"cc": ["https://example.com/~erik/followers",
|
"cc": ["https://example.com/@erik/followers",
|
||||||
"https://www.w3.org/ns/activitystreams#Public"]
|
"https://www.w3.org/ns/activitystreams#Public"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -741,21 +739,21 @@ The above example could be converted to this:
|
||||||
{
|
{
|
||||||
"@context": "https://www.w3.org/ns/activitystreams",
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
"type": "Create",
|
"type": "Create",
|
||||||
"id": "https://example.net/users/~mallory/87374",
|
"id": "https://example.net/users/mallory/87374",
|
||||||
"actor": "https://example.net/users/~mallory",
|
"actor": "https://example.net/users/mallory",
|
||||||
"object": {
|
"object": {
|
||||||
"id": "https://example.com/~mallory/note/72",
|
"id": "https://example.com/@mallory/note/72",
|
||||||
"type": "Note",
|
"type": "Note",
|
||||||
"attributedTo": "https://example.net/users/~mallory",
|
"attributedTo": "https://example.net/users/mallory",
|
||||||
"content": "This is a note",
|
"content": "This is a note",
|
||||||
"published": "2015-02-10T15:04:55Z",
|
"published": "2015-02-10T15:04:55Z",
|
||||||
"to": ["https://example.org/~john/"],
|
"to": ["https://example.org/@john/"],
|
||||||
"cc": ["https://example.com/~erik/followers",
|
"cc": ["https://example.com/@erik/followers",
|
||||||
"https://www.w3.org/ns/activitystreams#Public"]
|
"https://www.w3.org/ns/activitystreams#Public"]
|
||||||
},
|
},
|
||||||
"published": "2015-02-10T15:04:55Z",
|
"published": "2015-02-10T15:04:55Z",
|
||||||
"to": ["https://example.org/~john/"],
|
"to": ["https://example.org/@john/"],
|
||||||
"cc": ["https://example.com/~erik/followers",
|
"cc": ["https://example.com/@erik/followers",
|
||||||
"https://www.w3.org/ns/activitystreams#Public"]
|
"https://www.w3.org/ns/activitystreams#Public"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -780,7 +778,7 @@ A deleted object:
|
||||||
``` json
|
``` json
|
||||||
{
|
{
|
||||||
"@context": "https://www.w3.org/ns/activitystreams",
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
"id": "https://example.com/~alice/note/72",
|
"id": "https://example.com/@alice/note/72",
|
||||||
"type": "Tombstone",
|
"type": "Tombstone",
|
||||||
"published": "2015-02-10T15:04:55Z",
|
"published": "2015-02-10T15:04:55Z",
|
||||||
"updated": "2015-02-10T15:04:55Z",
|
"updated": "2015-02-10T15:04:55Z",
|
||||||
|
|
Loading…
Reference in New Issue