From f2bdafd709ba284b5d9d74bbf8924829b14a8060 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 16 Oct 2017 22:12:14 +0200 Subject: util.pubsub: Remove inclusion of publisher util.pubsub should stay agnostic of what data types are published and this depended on util.stanza --- util/pubsub.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'util/pubsub.lua') 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"; -- cgit v1.2.3