25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix blocklist get

This commit is contained in:
Evgeniy Khramtsov 2014-07-16 07:42:59 +04:00
parent 4a918c5b18
commit 89025eea39

View File

@ -493,8 +493,8 @@ process_blocklist_get(LUser, LServer, mnesia) ->
end end
end; end;
process_blocklist_get(LUser, LServer, riak) -> process_blocklist_get(LUser, LServer, riak) ->
case ejabberd_riak:get(privacy, {LUser, LServer}, case ejabberd_riak:get(privacy, mod_privacy:privacy_schema(),
mod_privacy:privacy_schema()) of {LUser, LServer}) of
{ok, #privacy{default = Default, lists = Lists}} -> {ok, #privacy{default = Default, lists = Lists}} ->
case lists:keysearch(Default, 1, Lists) of case lists:keysearch(Default, 1, Lists) of
{value, {_, List}} -> List; {value, {_, List}} -> List;