From cc8b5aa554141afd71fc77c27868fec523551853 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 28 Oct 2022 18:47:17 +0200 Subject: [PATCH] plugin XEP-0277: `signed` flag can now be used in `extra` to use sign the blog post: rel 381 --- sat/plugins/plugin_xep_0277.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sat/plugins/plugin_xep_0277.py b/sat/plugins/plugin_xep_0277.py index 6fe540e0..7a93c961 100644 --- a/sat/plugins/plugin_xep_0277.py +++ b/sat/plugins/plugin_xep_0277.py @@ -983,7 +983,11 @@ class XEP_0277(object): ): return None - extra = {"encrypted": True} if data.get("encrypted") else None + extra = {} + for key in ("encrypted", "signed"): + value = data.get(key) + if value is not None: + extra[key] = value await self._p.publish(client, service, node, [item], extra=extra) return item_id