mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix 'get-pending' command form generation
This commit is contained in:
parent
5ecbed5eae
commit
f10de6439b
@ -1284,9 +1284,9 @@ send_pending_node_form(Host, Owner, Lang, Plugins) ->
|
|||||||
Ps ->
|
Ps ->
|
||||||
case get_pending_nodes(Host, Owner, Ps) of
|
case get_pending_nodes(Host, Owner, Ps) of
|
||||||
{ok, Nodes} ->
|
{ok, Nodes} ->
|
||||||
|
Form = [{node, <<>>, lists:zip(Nodes, Nodes)}],
|
||||||
XForm = #xdata{type = form,
|
XForm = #xdata{type = form,
|
||||||
fields = pubsub_get_pending:encode(
|
fields = pubsub_get_pending:encode(Form, Lang)},
|
||||||
[{node, Nodes}], Lang)},
|
|
||||||
#adhoc_command{status = executing, action = execute,
|
#adhoc_command{status = executing, action = execute,
|
||||||
xdata = XForm};
|
xdata = XForm};
|
||||||
Err ->
|
Err ->
|
||||||
|
Loading…
Reference in New Issue
Block a user