Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 9102:f3a1ecc46f20
mod_pubsub: Advertise default access model in disco
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 04 Aug 2018 03:33:21 +0200 |
| parents | 7de4eec02ece |
| children | 31bf4b3abc7f |
comparison
equal
deleted
inserted
replaced
| 9101:1ff694534e98 | 9102:f3a1ecc46f20 |
|---|---|
| 185 if affiliation ~= "none" and affiliation ~= "owner" then | 185 if affiliation ~= "none" and affiliation ~= "owner" then |
| 186 supported_features:add(affiliation.."-affiliation"); | 186 supported_features:add(affiliation.."-affiliation"); |
| 187 end | 187 end |
| 188 end | 188 end |
| 189 | 189 |
| 190 if service.node_defaults.access_model then | |
| 191 supported_features:add("access-"..service.node_defaults.access_model); | |
| 192 end | |
| 193 | |
| 190 return supported_features; | 194 return supported_features; |
| 191 end | 195 end |
| 192 | 196 |
| 193 function _M.handle_disco_info_node(event, service) | 197 function _M.handle_disco_info_node(event, service) |
| 194 local stanza, reply, node = event.stanza, event.reply, event.node; | 198 local stanza, reply, node = event.stanza, event.reply, event.node; |
