]> granicus.if.org Git - ejabberd/commitdiff
Fix bug that appears when importing privacy from Prosody (#2872)
authorBadlop <badlop@process-one.net>
Thu, 2 May 2019 19:10:21 +0000 (21:10 +0200)
committerBadlop <badlop@process-one.net>
Thu, 2 May 2019 19:10:21 +0000 (21:10 +0200)
src/mod_privacy_sql.erl

index e5a97c96b782c6c0ff47fe5c4940e07938727549..92c9f6c605a689dc61c6f627709dec637c07c053 100644 (file)
@@ -92,7 +92,7 @@ set_lists(#privacy{us = {LUser, LServer},
                lists:foreach(
                  fun({Name, List}) ->
                          add_privacy_list(LUser, LServer, Name),
-                         {selected, [<<"id">>], [[I]]} =
+                         {selected, [{I}]} =
                              get_privacy_list_id_t(LUser, LServer, Name),
                          RItems = lists:map(fun item_to_raw/1, List),
                          set_privacy_list(I, RItems),