diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2021-05-28 16:43:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 16:43:49 +0200 |
commit | 3b5ddf0254c097952095525d783f443c896828c9 (patch) | |
tree | 223b52b5a03006cbf7c7ad0172589c59d0b6c721 | |
parent | Remove .travis.yml as it's superseded by ci.yml (#3613) (diff) |
mod_muc_room: Don't leak owner JIDs (#3615)
Avoid publishing room owner JIDs (via the muc#roominfo form) without
their explicit consent.
Closes #3609.
-rw-r--r-- | src/mod_muc_room.erl | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index a6f173064..2fa08dc79 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -1482,17 +1482,6 @@ expulse_participant(Packet, From, StateData, Reason1) -> end, remove_online_user(From, NewState). --spec get_owners(state()) -> [jid:jid()]. -get_owners(StateData) -> - maps:fold( - fun(LJID, owner, Acc) -> - [jid:make(LJID)|Acc]; - (LJID, {owner, _}, Acc) -> - [jid:make(LJID)|Acc]; - (_, _, Acc) -> - Acc - end, [], StateData#state.affiliations). - -spec set_affiliation(jid(), affiliation(), state()) -> state(). set_affiliation(JID, Affiliation, StateData) -> set_affiliation(JID, Affiliation, StateData, <<"">>). @@ -4132,7 +4121,6 @@ iq_disco_info_extras(Lang, StateData, Static) -> end, Fs1 = [{roomname, Config#config.title}, {description, Config#config.description}, - {contactjid, get_owners(StateData)}, {changesubject, Config#config.allow_change_subj}, {allowinvites, Config#config.allow_user_invites}, {allowpm, AllowPM}, |