Skip to content

Commit

Permalink
Expose the pubsub#type field in disco#info query to the node (#3914)
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Dec 13, 2022
1 parent fe8b98a commit 03681cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mod_pubsub.erl
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ node_disco_info(Host, Node, _From, _Identity, _Features) ->
_ -> []
end,
Meta = [{title, get_option(Options, title, <<>>)},
{type, get_option(Options, type, <<>>)},
{description, get_option(Options, description, <<>>)},
{owner, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= owner]},
{publisher, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= publisher]},
Expand Down

0 comments on commit 03681cd

Please sign in to comment.