Mercurial > prosody-modules
comparison mod_muc_http_defaults/README.markdown @ 4455:89e54247ade6
mod_muc_http_defaults: Add template filters to let you extract room JID parts
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 21 Feb 2021 16:15:21 +0100 |
parents | 0508822361eb |
children | 017ad6ed96ae |
comparison
equal
deleted
inserted
replaced
4454:8862a80cbd00 | 4455:89e54247ade6 |
---|---|
18 replaced by the address of the room in question. | 18 replaced by the address of the room in question. |
19 | 19 |
20 `muc_create_api_auth` | 20 `muc_create_api_auth` |
21 : The value of the Authorization header to authenticate against the | 21 : The value of the Authorization header to authenticate against the |
22 API. E.g. `"Bearer /rXU4tkQTYQMgdHfMLH6"`{.lua} | 22 API. E.g. `"Bearer /rXU4tkQTYQMgdHfMLH6"`{.lua} |
23 | |
24 In the URL template variable, the room JID is available as `{room.jid}`, | |
25 which would be turned into `room@muc.host`. To only get the room | |
26 localpart, `{room.jid|jid_node}` can be used, and `{room.jid|jid_host}` | |
27 splits out the `muc.host` part. | |
23 | 28 |
24 ## Example | 29 ## Example |
25 | 30 |
26 ``` {.lua} | 31 ``` {.lua} |
27 Component "channels.example.net" "muc" | 32 Component "channels.example.net" "muc" |