Software / code / prosody
Comparison
plugins/mod_pubsub/mod_pubsub.lua @ 11199:6c7c50a4de32 0.11
mod_pubsub: Lower priority of default <body> generator
in order to avoid conflict with a handler at the default (0) priority,
making it easier to write your own formatting in plugins.
this follows the common pattern of default modules having lower priority
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Nov 2020 22:27:17 +0100 |
| parent | 10672:657e61531b33 |
| child | 11200:bf8f2da84007 |
| child | 11201:4ae1d485a9c6 |
comparison
equal
deleted
inserted
replaced
| 11189:0ff148362a3d | 11199:6c7c50a4de32 |
|---|---|
| 125 if author then | 125 if author then |
| 126 summary = author .. " posted " .. summary; | 126 summary = author .. " posted " .. summary; |
| 127 end | 127 end |
| 128 end | 128 end |
| 129 return summary; | 129 return summary; |
| 130 end); | 130 end, -1); |
| 131 | 131 |
| 132 module:hook("iq/host/"..xmlns_pubsub..":pubsub", handle_pubsub_iq); | 132 module:hook("iq/host/"..xmlns_pubsub..":pubsub", handle_pubsub_iq); |
| 133 module:hook("iq/host/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq); | 133 module:hook("iq/host/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq); |
| 134 | 134 |
| 135 local function add_disco_features_from_service(service) --luacheck: ignore 431/service | 135 local function add_disco_features_from_service(service) --luacheck: ignore 431/service |