Software /
code /
prosody-modules
Comparison
mod_invites_page/mod_invites_page.lua @ 5630:efdaffc878a9
mod_invites_page: Produce URL without config from prosodyctl in trunk
Requires Prosody trunk rev 5884d58707fa or later.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 26 Jul 2023 16:23:13 +0200 |
parent | 4976:75b6e5df65f9 |
child | 5662:ebc09159b94a |
comparison
equal
deleted
inserted
replaced
5626:81042c2a235a | 5630:efdaffc878a9 |
---|---|
37 if prosody.process_type == "prosody" then | 37 if prosody.process_type == "prosody" then |
38 http_files = require "net.http.files"; | 38 http_files = require "net.http.files"; |
39 else | 39 else |
40 http_files = module:depends"http_files"; | 40 http_files = module:depends"http_files"; |
41 end | 41 end |
42 elseif prosody.process_type and module.get_option_period then | |
43 module:depends("http"); | |
44 http_files = require "net.http.files"; | |
42 end | 45 end |
43 -- Calculate automatic base_url default | 46 -- Calculate automatic base_url default |
44 base_url = module.http_url and module:http_url(); | 47 base_url = module.http_url and module:http_url(); |
45 | 48 |
46 -- Load site apps info | 49 -- Load site apps info |