mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix list unblocking when Riak is used as a backend
This commit is contained in:
parent
d87ca9fb7b
commit
4bbf16b21a
@ -299,7 +299,8 @@ process_blocklist_unblock_all(LUser, LServer, Filter,
|
|||||||
NewList = Filter(List),
|
NewList = Filter(List),
|
||||||
NewLists1 = lists:keydelete(Default, 1, Lists),
|
NewLists1 = lists:keydelete(Default, 1, Lists),
|
||||||
NewLists = [{Default, NewList} | NewLists1],
|
NewLists = [{Default, NewList} | NewLists1],
|
||||||
case ejabberd_riak:put(P#privacy{lists = NewLists}) of
|
case ejabberd_riak:put(P#privacy{lists = NewLists},
|
||||||
|
mod_privacy:privacy_schema()) of
|
||||||
ok ->
|
ok ->
|
||||||
{ok, Default, NewList};
|
{ok, Default, NewList};
|
||||||
Err ->
|
Err ->
|
||||||
|
Loading…
Reference in New Issue
Block a user