Changeset

5636:7e5701fbae88

mod_invites_api: add `module:depends("http");` to use `module:http_url()` in `prosodyctl`.
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Mon, 31 Jul 2023 11:52:00 +0700
parents 5635:99c0e675b969
children 5637:38783b8acbc9
files mod_invites_api/mod_invites_api.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_invites_api/mod_invites_api.lua	Sat Jul 29 22:51:48 2023 +0700
+++ b/mod_invites_api/mod_invites_api.lua	Mon Jul 31 11:52:00 2023 +0700
@@ -306,6 +306,7 @@
 		return 1;
 	end
 	require "core.storagemanager".initialize_host(domain);
+	module:depends("http");
 	module.host = domain; --luacheck: ignore 122/module
 	usermanager.initialize_host(module.host);
 	api_key_store = module:open_store("invite_api_keys", "map");