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:
parent
6093dedb65
commit
c7dc56c314
@ -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}} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user