Use name field for post titles instead of summary (ref !173)

This commit is contained in:
Felix Ableitner 2021-02-23 17:53:32 +01:00
parent 78b41f228a
commit 3589ad00a9

View file

@ -182,7 +182,7 @@ A page with title, and optional URL and text content. The URL often leads to an
"type": "Page", "type": "Page",
"attributedTo": "https://voyager.lemmy.ml/u/picard", "attributedTo": "https://voyager.lemmy.ml/u/picard",
"to": "https://voyager.lemmy.ml/c/main", "to": "https://voyager.lemmy.ml/c/main",
"summary": "Test thumbnail 2", "name": "Test thumbnail 2",
"content": "blub blub", "content": "blub blub",
"source": { "source": {
"content": "blub blub", "content": "blub blub",
@ -205,7 +205,7 @@ A page with title, and optional URL and text content. The URL often leads to an
|---|---|---| |---|---|---|
| `attributedTo` | yes | ID of the user which created this post | | `attributedTo` | yes | ID of the user which created this post |
| `to` | yes | ID of the community where it was posted to | | `to` | yes | ID of the community where it was posted to |
| `summary` | yes | Title of the post | | `name` | yes | Title of the post |
| `content` | no | Body of the post | | `content` | no | Body of the post |
| `url` | no | An arbitrary link to be shared | | `url` | no | An arbitrary link to be shared |
| `image` | no | Thumbnail for `url`, only present if it is an image link | | `image` | no | Thumbnail for `url`, only present if it is an image link |