Merge pull request #27 from LemmyNet/post-rename-field

Use `name` field for post titles instead of `summary` (ref !173)
This commit is contained in:
Dessalines 2021-02-23 19:57:31 -05:00 committed by GitHub
commit 550cf93459
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 |