Software /
code /
prosody-modules
Diff
mod_invites_api/mod_invites_api.lua @ 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 |
parent | 5629:160868fdddd6 |
child | 5637:38783b8acbc9 |
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");