-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose the pubsub#type field #3914
Comments
Do you mean this simple patch: diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 7b01c4af0..861b502db 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -969,6 +969,7 @@ node_disco_info(Host, Node, _From, _Identity, _Features) ->
_ -> []
end,
Meta = [{title, get_option(Options, title, <<>>)},
+ {type, get_option(Options, type, <<>>)},
{description, get_option(Options, description, <<>>)},
{owner, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= owner]},
{publisher, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= publisher]}, |
Yes, it should also be set using the pubsub node configuration. |
Probably doesn't take care of that. What exact XEP section and/or XEP example are you referring to? |
Sorry, my link was wrong, here is the correct one: https://xmpp.org/extensions/xep-0060.html#revision-history-v1.23.0 |
I'll ask again: how to check that? |
Basically from the server side, it is exactly the same thing as You can check if the element has been set correctly using this kind of request: https://xmpp.org/extensions/xep-0060.html#example-18 That's mostly it :) |
Redundant with #3820 |
Ok, let's see:
<field var='pubsub#type'
type='text-single'
label='...'>
<value>urn:example:e2ee:bundle</value>
</field>
<iq xml:lang='es'
to='[email protected]/elsinore'
from='pubsub.shakespeare.lit'
type='result'
id='78:481808'>
<query node='princely_musings'
xmlns='http://jabber.org/protocol/disco#info'>
...
<field var='pubsub#type'
type='text-single'
label='Payload type'>
<value>urn:example:e2ee:bundle</value>
</field> Does that solve the problem? |
Looks good for me ! |
XEP-0060 exposes
pubsub#type
. This field has been recently redefined in Version 1.23.0 (2022-01-14)It would be great to expose the configuration of this field and display in in the node metadata.
This change will be really useful for this XEP proposal that uses it extensively: xsf/xeps#1211
The text was updated successfully, but these errors were encountered: