Add author parameter for diaspora:// URLs to the documentation
This commit is contained in:
parent
40ad6546bc
commit
4f48f43455
1 changed files with 11 additions and 6 deletions
|
|
@ -13,20 +13,25 @@ it as software specific URL.
|
||||||
The format is similar to the route used for [fetching][fetching], so if the
|
The format is similar to the route used for [fetching][fetching], so if the
|
||||||
receiving server doesn't know the linked entity yet, it can just be fetched.
|
receiving server doesn't know the linked entity yet, it can just be fetched.
|
||||||
|
|
||||||
|
When the entity with that `guid` is already available locally, the recipient
|
||||||
|
should validate that it's from `author` before linking to it.
|
||||||
|
|
||||||
### Format
|
### Format
|
||||||
|
|
||||||
`diaspora://:type/:guid`
|
`diaspora://:author/:type/:guid`
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ------ | ---------------------------------------------- |
|
| -------- | -------------------------------------------------------------------- |
|
||||||
| `type` | The type of the linked entity in `snake_case`. |
|
| `author` | The [diaspora\* ID][diaspora-id] of the author of the linked entity. |
|
||||||
| `guid` | The [GUID][guid] of the linked entity. |
|
| `type` | The type of the linked entity in `snake_case`. |
|
||||||
|
| `guid` | The [GUID][guid] of the linked entity. |
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
`diaspora://post/17faf230675101350d995254001bd39e`
|
`diaspora://alice@example.org/post/17faf230675101350d995254001bd39e`
|
||||||
|
|
||||||
[fetching]: {{ site.baseurl }}/federation/fetching.html
|
[fetching]: {{ site.baseurl }}/federation/fetching.html
|
||||||
|
[diaspora-id]: {{ site.baseurl }}/federation/types.html#diaspora-id
|
||||||
[guid]: {{ site.baseurl }}/federation/types.html#guid
|
[guid]: {{ site.baseurl }}/federation/types.html#guid
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue