changeset 5620: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
parents 81042c2a235a
children b87a23b45725
files mod_invites_page/mod_invites_page.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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();