fix(invites): hint at type for landing_page opt

This commit is contained in:
Stefan Strigler
2026-02-27 11:46:35 +01:00
parent a4ff3f3a65
commit 8a7cf45d0b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -250,6 +250,8 @@ mod_doc() ->
" allow_modules:",
" - mod_invites"]}]}.
-spec mod_options(binary()) ->
[{landing_page, none | auto | binary()} | {atom(), any()}].
mod_options(Host) ->
[{access_create_account, none},
{db_type, ejabberd_config:default_db(Host, ?MODULE)},
+1 -1
View File
@@ -23,7 +23,7 @@ db_type(Opts) when is_map(Opts) ->
db_type(Host) ->
gen_mod:get_module_opt(Host, mod_invites, db_type).
-spec landing_page(gen_mod:opts() | global | binary()) -> any().
-spec landing_page(gen_mod:opts() | global | binary()) -> 'none' | 'auto' | binary().
landing_page(Opts) when is_map(Opts) ->
gen_mod:get_opt(landing_page, Opts);
landing_page(Host) ->