Software /
code /
prosody
Diff
util/pubsub.lua @ 8217:5f4e0d67b82a
util.pubsub: Catch overriden id from storage
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 26 Apr 2017 12:06:41 +0200 |
parent | 8212:66173e4b355a |
child | 8220:a1b0fa38fca7 |
line wrap: on
line diff
--- a/util/pubsub.lua Wed Apr 26 12:05:06 2017 +0200 +++ b/util/pubsub.lua Wed Apr 26 12:06:41 2017 +0200 @@ -273,6 +273,7 @@ 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;