Mercurial > prosody-modules
comparison mod_conversejs/mod_conversejs.lua @ 6208:303fcfe3a7e8
mod_conversejs: Make PWA options match documentation
Keeps fallback to `name` because this is a common option used by e.g.
mod_disco to give a descriptive name for the server itself, which seems
a sensible default.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 20 Apr 2025 13:37:15 +0200 |
| parents | 767b8594fb9d |
| children | 30adcea825c3 |
comparison
equal
deleted
inserted
replaced
| 6207:ab14e7ecb82f | 6208:303fcfe3a7e8 |
|---|---|
| 108 return converse_options; | 108 return converse_options; |
| 109 end | 109 end |
| 110 | 110 |
| 111 local add_tags = module:get_option_array("conversejs_tags", {}); | 111 local add_tags = module:get_option_array("conversejs_tags", {}); |
| 112 | 112 |
| 113 local service_name = module:get_option_string("name", "Prosody IM and Converse.js"); | 113 local service_name = module:get_option_string("conversejs_name", module:get_option_string("name", "Prosody IM and Converse.js")); |
| 114 local service_short_name = module:get_option_string("short_name", "Converse"); | 114 local service_short_name = module:get_option_string("conversejs_short_name", "Converse"); |
| 115 local service_description = module:get_option_string("description", "Messaging Freedom") | 115 local service_description = module:get_option_string("conversejs_description", "Messaging Freedom") |
| 116 local pwa_color = module:get_option_string("pwa_color", "#397491") | 116 local pwa_color = module:get_option_string("conversejs_pwa_color", "#397491") |
| 117 | 117 |
| 118 module:provides("http", { | 118 module:provides("http", { |
| 119 title = "Converse.js"; | 119 title = "Converse.js"; |
| 120 route = { | 120 route = { |
| 121 ["GET /"] = function (event) | 121 ["GET /"] = function (event) |
