mod_pubsub_text_interface/mod_pubsub_text_interface.lua
changeset 4493 725768d83830
parent 4238 f31eac6b2e9c
child 4648 bbf9e36db3a9
equal deleted inserted replaced
4492:eea62d30ae08 4493:725768d83830
    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();