comparison mod_invites_page/mod_invites_page.lua @ 6195:dfdf0bf1e84f

mod_invites_page: Remove compatibility with 0.11
author Link Mauve <linkmauve@linkmauve.fr>
date Wed, 09 Apr 2025 19:05:14 +0200
parents efdaffc878a9
children d68e640e76ad
comparison
equal deleted inserted replaced
6194:1b109900beae 6195:dfdf0bf1e84f
31 31
32 if not external_only then 32 if not external_only then
33 -- Load HTTP-serving dependencies 33 -- Load HTTP-serving dependencies
34 if prosody.shutdown then -- not if running under prosodyctl 34 if prosody.shutdown then -- not if running under prosodyctl
35 module:depends("http"); 35 module:depends("http");
36 36 http_files = require "net.http.files";
37 if prosody.process_type == "prosody" then
38 http_files = require "net.http.files";
39 else
40 http_files = module:depends"http_files";
41 end
42 elseif prosody.process_type and module.get_option_period then 37 elseif prosody.process_type and module.get_option_period then
43 module:depends("http"); 38 module:depends("http");
44 http_files = require "net.http.files"; 39 http_files = require "net.http.files";
45 end 40 end
46 -- Calculate automatic base_url default 41 -- Calculate automatic base_url default