25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix unblock all when Riak is used as a backend

This commit is contained in:
Evgeniy Khramtsov 2015-03-13 12:47:08 +03:00
parent 6093dedb65
commit c7dc56c314

View File

@ -292,7 +292,8 @@ process_blocklist_unblock_all(LUser, LServer, Filter,
process_blocklist_unblock_all(LUser, LServer, Filter, process_blocklist_unblock_all(LUser, LServer, Filter,
riak) -> riak) ->
{atomic, {atomic,
case ejabberd_riak:get(privacy, {LUser, LServer}) of case ejabberd_riak:get(privacy, mod_privacy:privacy_schema(),
{LUser, LServer}) of
{ok, #privacy{default = Default, lists = Lists} = P} -> {ok, #privacy{default = Default, lists = Lists} = P} ->
case lists:keysearch(Default, 1, Lists) of case lists:keysearch(Default, 1, Lists) of
{value, {_, List}} -> {value, {_, List}} ->