equal
deleted
inserted
replaced
75 elseif not item_id then |
75 elseif not item_id then |
76 reply:body("node is empty"); |
76 reply:body("node is empty"); |
77 else |
77 else |
78 pubsub.config.broadcaster("items", node_arg, { |
78 pubsub.config.broadcaster("items", node_arg, { |
79 [from] = { ["pubsub#include_body"] = true } |
79 [from] = { ["pubsub#include_body"] = true } |
80 }, item); |
80 }, item, nil, pubsub.nodes[node_arg]); |
81 reply:body("OK"); |
81 reply:body("OK"); |
82 end |
82 end |
83 else |
83 else |
84 reply:body("Unknown command. `help` to list commands."); |
84 reply:body("Unknown command. `help` to list commands."); |
85 reply:tag("response", { xmlns = xmlns_quick_resp, value = "help", }):up(); |
85 reply:tag("response", { xmlns = xmlns_quick_resp, value = "help", }):up(); |