--- a/mod_invites_page/mod_invites_page.lua Mon Jul 11 20:08:41 2022 +0200
+++ b/mod_invites_page/mod_invites_page.lua Mon Jul 18 13:58:27 2022 +0200
@@ -33,7 +33,11 @@
-- Load HTTP-serving dependencies
if prosody.shutdown then -- not if running under prosodyctl
module:depends("http");
- http_files = module:depends("http_files");
+ if not pcall(function ()
+ http_files = require "net.http.files";
+ end) then
+ http_files = module:depends"http_files";
+ end
end
-- Calculate automatic base_url default
base_url = module.http_url and module:http_url();