mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix blocklist get
This commit is contained in:
parent
4a918c5b18
commit
89025eea39
@ -493,8 +493,8 @@ process_blocklist_get(LUser, LServer, mnesia) ->
|
||||
end
|
||||
end;
|
||||
process_blocklist_get(LUser, LServer, riak) ->
|
||||
case ejabberd_riak:get(privacy, {LUser, LServer},
|
||||
mod_privacy:privacy_schema()) of
|
||||
case ejabberd_riak:get(privacy, mod_privacy:privacy_schema(),
|
||||
{LUser, LServer}) of
|
||||
{ok, #privacy{default = Default, lists = Lists}} ->
|
||||
case lists:keysearch(Default, 1, Lists) of
|
||||
{value, {_, List}} -> List;
|
||||
|
Loading…
Reference in New Issue
Block a user