diff mod_muc_media_metadata/README.markdown @ 3687:c40422cca3b7

mod_muc_media_metadata: Include original message stanza example
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Sep 2019 18:32:12 +0100
parents 2573d143621f
children 20d436a1028d
line wrap: on
line diff
--- a/mod_muc_media_metadata/README.markdown	Sun Sep 29 18:31:52 2019 +0100
+++ b/mod_muc_media_metadata/README.markdown	Sun Sep 29 18:32:12 2019 +0100
@@ -21,7 +21,20 @@
 
 # Developers
 
-Example stanza:
+## Example stanzas
+
+A normal message in a chatroom containing an image:
+
+```
+<message from="test@rooms.example.com/matthew" id="9f45a784-5e5b-4db5-a9b3-8ea1d7c1162d" type="groupchat">
+  <body>https://matthewwild.co.uk/share.php/70334772-ff74-439b-8173-a71e40ca28db/mam-flow.png</body>
+  <x xmlns="jabber:x:oob">
+    <url>https://matthewwild.co.uk/share.php/70334772-ff74-439b-8173-a71e40ca28db/mam-flow.png</url>
+  </x>
+</message>
+```
+
+The same stanza with this module loaded now contains additional metadata added by the server:
 
 ```
 <message from="test@rooms.example.com/matthew" id="9f45a784-5e5b-4db5-a9b3-8ea1d7c1162d" type="groupchat">