Lanceso querying bare JID isn't going to work, since the node doesn't live on your bare JID
Lanceyou'd need to get disco items for `pubsub.domain.tld`
Lancebut there's not a way to limit by creator iirc
Flavius Andreii am, but then i'd need to filter through all the results and only pick the jid i'm interested in
Flavius Andreiwhich is pretty expensive resource wise
Lancelooking
Lancei think theres a request to get affiliations that should give what you need
Flavius Andreiregarding pep, i assume my entire roster would be automatically subscribed to it and other jids won't be able to subscribe to it
Flavius Andreiregarding the affiliations, only the owner can retrieve those…
Lanceclient.getAffiliations('pubsub.domain.tld') should do what you need, if the server supports them
Lanceah, but that only returns all of _your_ affiliations, not someone elses
Flavius Andreiclient.getAffiliations(jid) also works but only returns the avatar nodes…
Flavius Andreicalling it as you suggested returns the same, avatar nodes :)
Flavius Andreithis doesn't really work
Flavius Andreithis.client.getNodeAffiliations(this.client.config.jid, 'web-development').then((nodes: PubsubAffiliations) => console.log('NODES', nodes));
i get node-not-found
Flavius Andreiitem-not-found actually
Lanceyou have to send the query to the bare JID housing the nodes. So use 'pubsub.domain.tld' instead of client.config.jid
Flavius Andreithen i get "Owner privileges required". owner of whom? :)
Flavius Andreioh, of the node i'm querying for
Flavius Andreibottom line, i don't think there's a way to retrieve a jid's nodes… :(
Flavius Andreiwhich kinda sucks
LanceYeah :/
LanceXEP 60 is missing that case entirely
LanceWhich I _understand_
LanceIt'd be a pain to handle correctly with privacy concerns
LanceYou'd then need public/private affiliation marking, etc
Flavius Andreiyes
Flavius Andreiwell, i'd do some magic
Lanceif you control the servers involved, then you can make whatever custom IQ you want to give you the data
Flavius Andreicreate the nodes, append "-private" and "-public" to their names (to filter for privacy) and then retrieve the nodes from the server, filter with this.client.getDiscoInfo('pubsub.domain.tld', item.node); and then do jid === details[0].fields[3].value[0] to find what i need
Flavius Andreithe server is ejabberd, written in erlang… i barely managed to alter som vcard_search sql queries…
Flavius Andreidon't think i'll be able to do custom IQs…
Flavius Andreithanks for the help
Flavius Andreimaybe you'll have the time to look into why stanzajs won't play nice with the cordova plugin, iosrtc? :D
Flavius AndreiUnhandled Promise Rejection: TypeError: Argument 1 ('track') to RTCPeerConnection.addTrack must be an instance of MediaStreamTrack
Flavius Andreii could provide more info if you're interested…
Flavius Andreithis is not _entirely_ true though
Flavius AndreiIt'd be a pain to handle correctly with privacy concerns
You'd then need public/private affiliation marking, etc
Flavius Andreibecause you can always run disco#info on a node and see who's the owner…
Flavius Andreiso they might've as well added the functionality to retrieve a jid's nodes… even based on the access model and voila, privacy issue solved by itself