aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-16 22:12:14 +0200
committerKim Alvefur <zash@zash.se>2017-10-16 22:12:14 +0200
commit3a65e49a4388c3aa8b092cc1df868926ee58d9c5 (patch)
treea119e8db11d473a6b233e93903a569b917b305d9
parentf0d34acdccd0d9d20ae1571d3e9894de03e22ffe (diff)
downloadprosody-3a65e49a4388c3aa8b092cc1df868926ee58d9c5.tar.gz
prosody-3a65e49a4388c3aa8b092cc1df868926ee58d9c5.zip
util.pubsub: Remove inclusion of publisher
util.pubsub should stay agnostic of what data types are published and this depended on util.stanza
-rw-r--r--util/pubsub.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index 9b38bf59..a10f9a84 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -271,9 +271,6 @@ function service:publish(node, actor, id, item)
node_obj = self.nodes[node];
end
local node_data = self.data[node];
- if type(actor) == "string" then
- item.attr.publisher = actor;
- end
local ok = node_data:set(id, item);
if not ok then
return nil, "internal-server-error";