Commit graph

11 commits

Author SHA1 Message Date
Kim Alvefur
b44f2592ea mod_bookmarks: Fix typos in stanza error messages [codespell] 2022-02-04 16:39:35 +01:00
Kim Alvefur
2a0311098c mod_bookmarks: Fix traceback on attempt to convert invalid bookmark
Found by accidentally publishing {urn:xmpp:bookmarks:0}conference
instead of :1 due to testing this earlier for the blocking.

By the principle of garbage in, garbage out, just generate a bookmark
from the item id / JID and carry on with a warning.
2022-01-11 00:06:48 +01:00
Kim Alvefur
ba50691289 mod_bookmarks: Block publishing to older XEP-0402 v0.3.0 node
Having both the :0 and :1 nodes would be especially awkward, since there
is no upgrade path for this case. In theory, these should be rare since
no clients should have been doing XEP-0402 unless mod_bookmarks(2) was
enabled. This was guesstimated to be rare with most clients doing
XEP-0048 with Private XML.
2022-01-10 22:15:55 +01:00
Kim Alvefur
125249a322 mod_bookmarks: Skip migration of legacy data when empty
Should save some cycles and not log the debug message on every login.
2022-01-10 00:13:17 +01:00
Kim Alvefur
939e49685c mod_bookmarks: Make sure legacy bookmarks node exists to hold access model 2022-01-10 00:11:36 +01:00
Kim Alvefur
8a53094a7d mod_bookmarks: Broadcast notifications per XEP-0048 and XEP-0411
For compatibility with clients relying on the notifications
2022-01-09 18:42:22 +01:00
Kim Alvefur
475ab4aed2 mod_bookmarks: Add option for disabling upgrade of legacy bookmarks
Might be nice to reduce amount of things happening on connect once
all users has upgraded
2022-01-08 00:32:33 +01:00
Kim Alvefur
1fa49be063 mod_bookmarks: Unhook PEP service objects on removal from cache
See 1dc00ca6ee9d
2022-01-08 00:30:26 +01:00
Emmanuel Gil Peyrot
b5b67241e0 mod_bookmarks: Override the node configuration if it was wrong 2022-01-06 00:59:40 +01:00
Emmanuel Gil Peyrot
91172308d6 mod_bookmarks: Remove compatibility with 0.11 2022-01-04 23:16:02 +01:00
Emmanuel Gil Peyrot
be16e27957 mod_bookmarks: Import mod_bookmarks2 from prosody-modules @ ad7767a9f3ea 2022-01-04 23:04:14 +01:00