Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Mon Mar 21 10:06:48 2022 +0000 +++ b/plugins/mod_pubsub/mod_pubsub.lua Mon Mar 21 12:36:20 2022 +0000 @@ -84,7 +84,7 @@ end if not expose_publisher then item.attr.publisher = nil; - elseif not item.attr.publisher then + elseif not item.attr.publisher and actor ~= true then item.attr.publisher = service.config.normalize_jid(actor); end end