Diff

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
line wrap: on
line diff
--- a/mod_invites_page/mod_invites_page.lua	Tue Jul 25 11:01:58 2023 +0200
+++ b/mod_invites_page/mod_invites_page.lua	Wed Jul 26 16:23:13 2023 +0200
@@ -39,6 +39,9 @@
 		else
 			http_files = module:depends"http_files";
 		end
+	elseif prosody.process_type and module.get_option_period then
+		module:depends("http");
+		http_files = require "net.http.files";
 	end
 	-- Calculate automatic base_url default
 	base_url = module.http_url and module:http_url();