Software /
code /
prosody-modules
Comparison
mod_pubsub_post/README.markdown @ 4961:18774cc621d6
mod_pubsub_post/README: Update references to trunk with release numbers
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 14 Jun 2022 19:08:57 +0200 |
parent | 4842:8d4b91a703af |
comparison
equal
deleted
inserted
replaced
4960:59bedf167910 | 4961:18774cc621d6 |
---|---|
90 affiliation with the _publish_ capability, usually `"publisher"`. | 90 affiliation with the _publish_ capability, usually `"publisher"`. |
91 | 91 |
92 ### Setting up affiliations | 92 ### Setting up affiliations |
93 | 93 |
94 Prosodys PubSub module supports [setting affiliations via | 94 Prosodys PubSub module supports [setting affiliations via |
95 XMPP](https://xmpp.org/extensions/xep-0060.html#owner-affiliations), in | 95 XMPP](https://xmpp.org/extensions/xep-0060.html#owner-affiliations), |
96 trunk since [revision | 96 since 0.11.0, so affiliations can be configured with a capable client. |
97 384ef9732b81](https://hg.prosody.im/trunk/rev/384ef9732b81), so | |
98 affiliations can be configured with a capable client. | |
99 | 97 |
100 It can however be done from another plugin: | 98 It can however be done from another plugin: |
101 | 99 |
102 ``` {.lua} | 100 ``` {.lua} |
103 local mod_pubsub = module:depends("pubsub"); | 101 local mod_pubsub = module:depends("pubsub"); |
107 pubsub:set_affiliation("princely_musings", true, "127.0.0.1", "publisher"); | 105 pubsub:set_affiliation("princely_musings", true, "127.0.0.1", "publisher"); |
108 ``` | 106 ``` |
109 | 107 |
110 ## Data mappings | 108 ## Data mappings |
111 | 109 |
112 The datamapper library added in trunk allows posting JSON and having it | 110 The datamapper library added in 0.12.0 allows posting JSON and having it |
113 converted to XML based on a special JSON Schema. | 111 converted to XML based on a special JSON Schema. |
114 | 112 |
115 ``` json | 113 ``` json |
116 { | 114 { |
117 "properties" : { | 115 "properties" : { |