mod_muc_media_metadata: Include original message stanza example
authorMatthew Wild <mwild1@gmail.com>
Sun, 29 Sep 2019 18:32:12 +0100
changeset 3691 c40422cca3b7
parent 3690 2573d143621f
child 3692 d4537f045a78
mod_muc_media_metadata: Include original message stanza example
mod_muc_media_metadata/README.markdown
--- 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">