fix: corrected examples

pull/3639/head
henri2h 4 years ago
parent 5355b2b3af
commit a272151ddb

@ -158,23 +158,23 @@ like:
"body": "<h1>The awesome story</h1><p>A long time ago in a galaxy far, far away...</p><a href='...'>Read full post</a>", "body": "<h1>The awesome story</h1><p>A long time ago in a galaxy far, far away...</p><a href='...'>Read full post</a>",
"m.social.post": [ "m.social.post": [
{ {
"msgtype": "m.text", "m.text": "The first part of full text of story, located before image.",
"body": "The first part of full text of story, located before image.",
}, },
{ {
"msgtype": "m.image", "m.file": {
"url": "mxc://example.com/KUAQOesGECkQTgdtedkftISg", "mimetype": "image/jpeg",
"body": "Image 1.jpg", "name": "_MG_0641.jpg",
"info": { "size": 10158773,
"mimetype": "image/jpg", "url": "mxc://"
"size": 1153501, },
"w": 963, "m.image": {
"h": 734, "height": 3456,
} "width": 5184
}, },
}
{ {
"msgtype": "m.text", "m.text": "The ending text of full story after image.",
"body": "The ending text of full story after image.",
} }
] ]
} }
@ -230,6 +230,7 @@ like :
"type": "m.social.image", "type": "m.social.image",
"content": { "content": {
"m.social.image": [ "m.social.image": [
{
"m.caption": [ "m.caption": [
{ {
"m.text": "Tramline in Berlin" "m.text": "Tramline in Berlin"
@ -258,7 +259,8 @@ like :
"url": "mxc://nordgedanken.dev/", "url": "mxc://nordgedanken.dev/",
"width": 800 "width": 800
} }
], ]
}
] ]
}, },
} }

Loading…
Cancel
Save