From a272151ddb2671a0b46a0fc3b1211fa8d6bf0358 Mon Sep 17 00:00:00 2001 From: henri2h Date: Wed, 16 Feb 2022 16:40:22 +0100 Subject: [PATCH] fix: corrected examples --- ...39-matrix-for-the-social-media-use-case.md | 84 ++++++++++--------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/proposals/3639-matrix-for-the-social-media-use-case.md b/proposals/3639-matrix-for-the-social-media-use-case.md index 47d48edb6..5145df976 100644 --- a/proposals/3639-matrix-for-the-social-media-use-case.md +++ b/proposals/3639-matrix-for-the-social-media-use-case.md @@ -158,23 +158,23 @@ like: "body": "

The awesome story

A long time ago in a galaxy far, far away...

Read full post", "m.social.post": [ { - "msgtype": "m.text", - "body": "The first part of full text of story, located before image.", + "m.text": "The first part of full text of story, located before image.", }, + { - "msgtype": "m.image", - "url": "mxc://example.com/KUAQOesGECkQTgdtedkftISg", - "body": "Image 1.jpg", - "info": { - "mimetype": "image/jpg", - "size": 1153501, - "w": 963, - "h": 734, - } - }, + "m.file": { + "mimetype": "image/jpeg", + "name": "_MG_0641.jpg", + "size": 10158773, + "url": "mxc://" + }, + "m.image": { + "height": 3456, + "width": 5184 + }, + } { - "msgtype": "m.text", - "body": "The ending text of full story after image.", + "m.text": "The ending text of full story after image.", } ] } @@ -230,35 +230,37 @@ like : "type": "m.social.image", "content": { "m.social.image": [ - "m.caption": [ - { - "m.text": "Tramline in Berlin" - }, + { + "m.caption": [ + { + "m.text": "Tramline in Berlin" + }, + { + "body": "Tramline in Berlin", + "mimetype": "text/html" + } + ], + "m.file": { + "mimetype": "image/jpeg", + "name": "_MG_0641.jpg", + "size": 10158773, + "url": "mxc://" + }, + "m.image": { + "height": 3456, + "width": 5184 + }, + "m.text": "Tramline Berlin", + "m.thumbnail": [ { - "body": "Tramline in Berlin", - "mimetype": "text/html" + "height": 533, + "mimetype": "image/jpeg", + "size": 215496, + "url": "mxc://nordgedanken.dev/", + "width": 800 } - ], - "m.file": { - "mimetype": "image/jpeg", - "name": "_MG_0641.jpg", - "size": 10158773, - "url": "mxc://" - }, - "m.image": { - "height": 3456, - "width": 5184 - }, - "m.text": "Tramline Berlin", - "m.thumbnail": [ - { - "height": 533, - "mimetype": "image/jpeg", - "size": 215496, - "url": "mxc://nordgedanken.dev/", - "width": 800 - } - ], + ] + } ] }, }