# HG changeset patch # User Kim Alvefur # Date 1501326597 -7200 # Node ID a1b0fa38fca77db466d7eea1b665e11d7f68d5d0 # Parent 2e68ae0956459ee152f6b255fd1d26e953493f49 util.pubsub: Don't record publisher when superuser privileges are used (eg by modules) diff -r 2e68ae095645 -r a1b0fa38fca7 util/pubsub.lua --- a/util/pubsub.lua Wed Apr 26 12:11:11 2017 +0200 +++ b/util/pubsub.lua Sat Jul 29 13:09:57 2017 +0200 @@ -268,7 +268,9 @@ node_obj = self.nodes[node]; end local node_data = self.data[node]; - item.attr.publisher = actor; + 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";