Software /
code /
prosody
Comparison
util/pubsub.lua @ 8326:12408867bc86
util.pubsub: Remove inclusion of publisher
util.pubsub should stay agnostic of what data types are published and
this depended on util.stanza
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 16 Oct 2017 22:12:14 +0200 |
parent | 8316:8648cb171213 |
child | 8333:2abbb01cd756 |
comparison
equal
deleted
inserted
replaced
8325:9a845e9e9cbf | 8326:12408867bc86 |
---|---|
269 return ok, err; | 269 return ok, err; |
270 end | 270 end |
271 node_obj = self.nodes[node]; | 271 node_obj = self.nodes[node]; |
272 end | 272 end |
273 local node_data = self.data[node]; | 273 local node_data = self.data[node]; |
274 if type(actor) == "string" then | |
275 item.attr.publisher = actor; | |
276 end | |
277 local ok = node_data:set(id, item); | 274 local ok = node_data:set(id, item); |
278 if not ok then | 275 if not ok then |
279 return nil, "internal-server-error"; | 276 return nil, "internal-server-error"; |
280 end | 277 end |
281 if type(ok) == "string" then id = ok; end | 278 if type(ok) == "string" then id = ok; end |