From a7a4931456a617422c547daeec2a9e9c5fb82f83 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 26 Apr 2017 12:06:41 +0200 Subject: util.pubsub: Catch overriden id from storage --- util/pubsub.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index b063419e..159b16f3 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -273,6 +273,7 @@ function service:publish(node, actor, id, item) if not ok then return nil, "internal-server-error"; end + if type(ok) == "string" then id = ok; end self.events.fire_event("item-published", { node = node, actor = actor, id = id, item = item }); self.config.broadcaster("items", node, node_obj.subscribers, item, actor); return true; -- cgit v1.2.3