-
edhelas
Ok so I'm planning to totally drop the publish-option feature in Movim for now as the support is currently broken on servers (especially ejabberd). I might add it back later.
-
MattJ
edhelas, what's the alternative? (I'm not aware of any safe alternative)
-
edhelas
Well I'll send a manual configuration of the node each time I publish
-
MattJ
😕
-
edhelas
https://xmpp.org/extensions/xep-0060.html#owner-configure
-
edhelas
Double the traffic but eh 🤷♂️
-
MattJ
I don't understand... what's the bug? Other clients are using publish-options
-
edhelas
https://github.com/processone/ejabberd/issues/3044
-
MattJ
So it's just that certain fields aren't working in publish-options
-
MattJ
So keep publish-options with those fields, and configure the other fields manually until ejabberd is fixed?
-
edhelas
No I'll just configure everything manually
-
edhelas
I'll not do half solutions in the code
-
MattJ
Okay, but I consider what you're doing to be a half solution :)
-
MattJ
You'll want to add publish-options back in the future anyway
-
MattJ
or even enable it when the server is known to not be broken
-
MattJ
It's safer than manually configuring
-
edhelas
🙄
-
lovetox
edhelas, which field is it that you need to configure?
-
edhelas
A lot of them actually, why should I pick ?
-
lovetox
i mean, which field is that important, which ejabberd does not support
-
lovetox
there are definitly fields, which are nice to have, but are not essential for some functionality
-
edhelas
Oh nothing fancy
-
edhelas
<field var="pubsub#persist_items"> <value>true</value> </field> <field var="pubsub#max_items"> <value>max</value> </field> <field var="pubsub#itemreply"> <value>publisher</value> </field> <field var="pubsub#access_model"> <value>presence</value> </field> <field var="pubsub#pubsub#notify_retract"> <value>true</value> </field>
-
edhelas
Those fields I can configure them manually with the form config
-
edhelas
It's explained in the ticket
-
lovetox
and is this all for bookmarks 2?
-
singpolyma
bookmarks2 you would use access model whitelist I think
-
lovetox
you use this for all bookmarks xeps
-
lovetox
and its supported by ejabberd anyway
-
edhelas
I'm implementing plenty of PEP XEPs
-
pep.
Yeah whiltelist for bookmarks, not presence✎ -
pep.
Yeah whitelist for bookmarks, not presence ✏
-
edhelas
This is for Microblog
-
edhelas
https://github.com/processone/ejabberd/issues/3044#issuecomment-1477384826
-
lovetox
and max items you set to "max"?
-
lovetox
is this in itself even supported by ejabberd?
-
edhelas
It is
-
edhelas
Again, this exact form, I can submit it manually using a node config
-
pep.
Can you not fallback to configuring the node manually, when you get this error from ejabberd? Just like you would when publish-options tells you the config differs
-
lovetox
yeah seems easier
-
lovetox
the node config flow you need anyway
-
edhelas
https://upload.movim.eu/files/9d94237298995552fa13436420195fbca436dce7/8cmQObCjXGJK/image.png
-
lovetox
its not ejabberds fault
-
edhelas
No, what I'll do is reconfigure the node each time I publish for now
-
lovetox
its just that it rejects all your publish options requests, and you end up in this flow anyway for ejabberd
-
lovetox
yeah but why edhelas, normally you publish with publish options
-
lovetox
then you get an error
-
edhelas
Because I have to do a big refactoring to handle those multiple request-flow in Movim
-
lovetox
and then you go into the reconfig flow
-
pep.
edhelas, and race every other client :(
-
lovetox
ah ok
-
lovetox
yeah fair enough, but just to be clear, ejabberd not supporting this makes it not really that you have to write more code
-
lovetox
all that code that exists now, needs always to be there, it doesnt matter if a server supports publish options or not
-
edhelas
Anyway, I'll figure something out
-
lovetox
i should look at my bookmarks 2 impl again
-
lovetox
i think its not often used
-
lovetox
i use it only if the server supports the conversion XEPs
-
lovetox
and i think its a rare case that they do
-
edhelas
But I can tell you that the state and accessibility of Pubsub in the XMPP realm is really not that great. I've been working with Pubsub for years now and I can get that new comers really don't want to handle this complexity/buggyish experience.
-
edhelas
:/
-
pep.
lovetox, yeah that's about what is recommended I guess. Re bookmarks2
-
lovetox
edhelas, no discussion about that, but i feel like this with many things in XMPP
-
lovetox
like i curse everytime if i have to thinkabout PMs
-
lovetox
and MAM
-
lovetox
and before MattJ jumps in, i meant PMs in combination with MAM :)
-
singpolyma
lovetox: at very least snikket has the conversion xep enabled
-
lovetox
also the urn:xmpp:bookmarks:1#compat ?
-
lovetox
urn:xmpp:bookmarks:1#compat-pep
-
lovetox
i think i look for those 2
-
lovetox
hm no, just compat-pep and node-max features