Software /
code /
prosody
Comparison
plugins/mod_pubsub/mod_pubsub.lua @ 12427:018ac691ee22 0.12
mod_pubsub: Don't attempt to use server actor as publisher (fixes #1723)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 21 Mar 2022 12:36:20 +0000 |
parent | 12215:33a93d0a9a45 |
child | 12642:9061f9621330 |
comparison
equal
deleted
inserted
replaced
12423:3ae9299d61d7 | 12427:018ac691ee22 |
---|---|
82 if node_obj and node_obj.config.include_payload == false then | 82 if node_obj and node_obj.config.include_payload == false then |
83 item:maptags(function () return nil; end); | 83 item:maptags(function () return nil; end); |
84 end | 84 end |
85 if not expose_publisher then | 85 if not expose_publisher then |
86 item.attr.publisher = nil; | 86 item.attr.publisher = nil; |
87 elseif not item.attr.publisher then | 87 elseif not item.attr.publisher and actor ~= true then |
88 item.attr.publisher = service.config.normalize_jid(actor); | 88 item.attr.publisher = service.config.normalize_jid(actor); |
89 end | 89 end |
90 end | 90 end |
91 end | 91 end |
92 | 92 |