# HG changeset patch # User Goffi # Date 1666975637 -7200 # Node ID b8ab6da58ac85ab2f0e86e671d3dc0b35c0308f9 # Parent 3cb9ade2ab847303e27ed53c7bd4d0250f7d7af4 plugin XEP-0277: `signed` flag can now be used in `extra` to use sign the blog post: rel 381 diff -r 3cb9ade2ab84 -r b8ab6da58ac8 sat/plugins/plugin_xep_0277.py --- a/sat/plugins/plugin_xep_0277.py Fri Oct 28 18:47:17 2022 +0200 +++ b/sat/plugins/plugin_xep_0277.py Fri Oct 28 18:47:17 2022 +0200 @@ -983,7 +983,11 @@ ): 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