1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

Expose the pubsub#type field in disco#info query to the node (#3914)

This commit is contained in:
Badlop 2022-10-07 13:43:23 +02:00
parent fe8b98a1f3
commit 03681cd68d

View file

@ -969,6 +969,7 @@ node_disco_info(Host, Node, _From, _Identity, _Features) ->
_ -> [] _ -> []
end, end,
Meta = [{title, get_option(Options, title, <<>>)}, Meta = [{title, get_option(Options, title, <<>>)},
{type, get_option(Options, type, <<>>)},
{description, get_option(Options, description, <<>>)}, {description, get_option(Options, description, <<>>)},
{owner, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= owner]}, {owner, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= owner]},
{publisher, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= publisher]}, {publisher, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= publisher]},