Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
4010:818db4ca3717 | 4011:74d4c9ff893d |
---|---|
573 if not microblog_data.get("author_jid"): | 573 if not microblog_data.get("author_jid"): |
574 if publisher: | 574 if publisher: |
575 microblog_data["author_jid"] = publisher | 575 microblog_data["author_jid"] = publisher |
576 microblog_data["author_jid_verified"] = True | 576 microblog_data["author_jid_verified"] = True |
577 else: | 577 else: |
578 iq_elt = xml_tools.findAncestor(item_elt, "iq", C.NS_CLIENT) | 578 iq_elt = xml_tools.findAncestor(item_elt, "iq", C.NS_STREAM) |
579 microblog_data["author_jid"] = iq_elt["from"] | 579 microblog_data["author_jid"] = iq_elt["from"] |
580 microblog_data["author_jid_verified"] = False | 580 microblog_data["author_jid_verified"] = False |
581 | 581 |
582 # categories | 582 # categories |
583 categories = [ | 583 categories = [ |