diff sat/plugins/plugin_xep_0277.py @ 4011:74d4c9ff893d

plugin XEP-0277: when publisher is not found, check ancestor in both client and component namespaces
author Goffi <goffi@goffi.org>
date Thu, 16 Mar 2023 16:43:47 +0100
parents 5fbdf986670c
children 86efd854dee1
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0277.py	Thu Mar 16 16:43:08 2023 +0100
+++ b/sat/plugins/plugin_xep_0277.py	Thu Mar 16 16:43:47 2023 +0100
@@ -575,7 +575,7 @@
                 microblog_data["author_jid"] = publisher
                 microblog_data["author_jid_verified"] = True
             else:
-                iq_elt = xml_tools.findAncestor(item_elt, "iq", C.NS_CLIENT)
+                iq_elt = xml_tools.findAncestor(item_elt, "iq", C.NS_STREAM)
                 microblog_data["author_jid"] = iq_elt["from"]
                 microblog_data["author_jid_verified"] = False