Add missing docs for community deletion/removal (fixes #1250)
This commit is contained in:
parent
6746d973a1
commit
c631dc58ce
1 changed files with 50 additions and 0 deletions
|
@ -559,6 +559,56 @@ Sent to: User
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `object` | yes | Any `Create`, `Update`, `Like`, `Dislike`, `Delete` `Remove` or `Undo` activity as described above |
|
| `object` | yes | Any `Create`, `Update`, `Like`, `Dislike`, `Delete` `Remove` or `Undo` activity as described above |
|
||||||
|
|
||||||
|
### Remove or Delete Community
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
|
"id": "http://ds9.lemmy.ml/activities/remove/e4ca7688-af9d-48b7-864f-765e7f9f3591",
|
||||||
|
"type": "Remove",
|
||||||
|
"actor": "http://ds9.lemmy.ml/c/some_community",
|
||||||
|
"cc": [
|
||||||
|
"http://ds9.lemmy.ml/c/some_community/followers"
|
||||||
|
],
|
||||||
|
"to": "https://www.w3.org/ns/activitystreams#Public",
|
||||||
|
"object": "http://ds9.lemmy.ml/c/some_community"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
| Field Name | Mandatory | Description |
|
||||||
|
|---|---|---|
|
||||||
|
| `type` | yes | Either `Remove` or `Delete` |
|
||||||
|
|
||||||
|
### Restore Removed or Deleted Community
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
|
"id": "http://ds9.lemmy.ml/activities/like/0703668c-8b09-4a85-aa7a-f93621936901",
|
||||||
|
"type": "Undo",
|
||||||
|
"actor": "http://ds9.lemmy.ml/c/some_community",
|
||||||
|
"to": "https://www.w3.org/ns/activitystreams#Public",
|
||||||
|
"cc": [
|
||||||
|
"http://ds9.lemmy.ml/c/testcom/followers"
|
||||||
|
],
|
||||||
|
"object": {
|
||||||
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
|
"id": "http://ds9.lemmy.ml/activities/remove/1062b5e0-07e8-44fc-868c-854209935bdd",
|
||||||
|
"type": "Remove",
|
||||||
|
"actor": "http://ds9.lemmy.ml/c/some_community",
|
||||||
|
"object": "http://ds9.lemmy.ml/c/testcom",
|
||||||
|
"to": "https://www.w3.org/ns/activitystreams#Public",
|
||||||
|
"cc": [
|
||||||
|
"http://ds9.lemmy.ml/c/testcom/followers"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
| Field Name | Mandatory | Description |
|
||||||
|
|---|---|---|
|
||||||
|
| `object.type` | yes | Either `Remove` or `Delete` |
|
||||||
|
|
||||||
### Create or Update Private message
|
### Create or Update Private message
|
||||||
|
|
||||||
Creates a new private message between two users.
|
Creates a new private message between two users.
|
||||||
|
|
Loading…
Reference in a new issue