mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
ox: have metadata node open
Should have been done alogn with e9f218cdf6e15f4469d77cbaee59cc8501ed4e82. Like this people who are not in the roster can get our public key and write messages to use.
This commit is contained in:
parent
0500e209a6
commit
54b57326b8
@ -277,6 +277,12 @@ _ox_metadata_node__public_key(const char* const fingerprint)
|
||||
xmpp_stanza_add_child(pubsub, publish);
|
||||
xmpp_stanza_add_child(iq, pubsub);
|
||||
|
||||
if (connection_supports(XMPP_FEATURE_PUBSUB_PUBLISH_OPTIONS)) {
|
||||
stanza_attach_publish_options(ctx, iq, "pubsub#access_model", "open");
|
||||
} else {
|
||||
log_debug("[OX] Cannot publish public key: no PUBSUB feature announced");
|
||||
}
|
||||
|
||||
iq_send_stanza(iq);
|
||||
xmpp_stanza_release(iq);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user