aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-13/+13
|
* compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
|
* mod_storage_xep0227: Fix mapping of nodes without explicit configurationKim Alvefur2022-04-081-3/+1
| | | | | | | Turns out this table was wrong, it's missing some fields which are required and it's 'name', not 'node'. Setting it to the boolean true invokes compatibility behavior in mod_pep which results in the correct default structure.
* mod_storage_xep0227: Fix conversion of SCRAM into internal format (fix #1741)Kim Alvefur2022-04-081-1/+1
| | | | | Looks like this function was a copy of hex_to_base64 without modifying it to do its inverse.
* mod_storage_xep0227: Support basic listing of PEP nodes in absence of ↵Kim Alvefur2022-03-311-2/+11
| | | | | | pubsub#admin data Allows migrating PEP nodes with default settings
* mod_storage_xep0227: Improve loggingKim Alvefur2022-03-291-1/+1
| | | | What were we looking at?
* mod_storage_xep0227: Handle missing {pubsub#owner}pubsub element (fixes #1740)Matthew Wild2022-04-071-0/+3
|
* util.hex: Deprecate to/from in favour of encode/decode, for consistency!Matthew Wild2022-03-041-2/+2
|
* mod_storage_xep0227: Fix luacheck warningMatthew Wild2022-01-171-1/+1
|
* mod_storage_xep0227: Fix traceback during iteration of driver storesMatthew Wild2022-01-171-1/+1
| | | | :include(other_set), :add(item)
* mod_storage_xep0227: Fix file export (missing parameter) from refactor in ↵Matthew Wild2022-01-171-1/+1
| | | | 270047afa6af
* mod_storage_xep0227: treat roster metadata pseudo-entry correctlyJonas Schäfer2022-01-151-1/+1
| | | | | | | | | | The roster version is stored in a pseudo-item which has the key `false`. The if condition in the touched code attempts to guard against this, but it does not take into account that the jid prepping returns nil instead of false. By moving the jid prepping into the if, we can check for the metadata entry safely.
* mod_storage_xep0227: be defensive against empty vCardJonas Schäfer2022-01-151-1/+1
| | | | | An empty vCard store may look like the empty table, which does not have the `attr` key, which would then blow up in util.stanza.deserialize.
* mod_storage_xep0227: Fix luacheck warningsMatthew Wild2022-01-141-2/+2
|
* mod_storage_xep0227: Add API to iterate all stores of a userMatthew Wild2022-01-141-7/+23
|
* mod_storage_xep0227: Skip self-contacts on roster importMatthew Wild2022-01-141-11/+15
|
* mod_storage_xep0227: Fix writing non-user dataKim Alvefur2022-01-101-2/+3
| | | | | | | Attempt to concatenate nil 'user' Not much data actually makes sense but the migrator tries to write or clear these.
* mod_storage_xep0227: Ignore luacheck warningMatthew Wild2022-01-101-1/+1
|
* mod_storage_xep0227: Support for exporting nodes with no stored configurationMatthew Wild2022-01-101-0/+3
|
* mod_storage_xep0227: Allow overriding the input/output layer for XEP-0227 dataMatthew Wild2022-01-101-27/+49
| | | | This can (and will) be used to support in-memory import/export functions.
* mod_storage_xep0227: Replace custom tag-removal helpers with :remove_children()Matthew Wild2021-12-201-27/+9
|
* mod_storage_xep0227: Add scram-credentials to user element rather than serverMatthew Wild2021-09-221-1/+1
|
* mod_storage_xep0227: Update for XEP-0227 r1.1: Support for SCRAM, MAM, PEPMatthew Wild2021-09-121-23/+495
|
* mod_storage_xep0227: Ignore unused 'self' argument [luacheck]Kim Alvefur2017-10-251-1/+1
|
* mod_storage_xep0227: Add roster storage (fixes #1023)Kim Alvefur2017-10-191-0/+73
|
* mod_storage_xep0227: Correctly report that only key-value stores are supportedKim Alvefur2017-10-191-0/+1
|
* mod_storage_xep0227: Silence luacheck warningsKim Alvefur2015-05-151-3/+3
|
* mod_storage_xep0227: Store data from mod_auth_internal_hashed in a private ↵Kim Alvefur2015-05-151-2/+19
| | | | namespace
* mod_storage_xep0227: Use the registered namespaceKim Alvefur2015-05-151-1/+1
|
* mod_storage_xep0227: Update open method for current APIKim Alvefur2015-05-151-8/+3
|
* mod_storage_xep0227: Return error from io.open if unable to open file for ↵Kim Alvefur2015-05-151-2/+2
| | | | writing
* mod_storage_xep0227: Open file for writing even if removing so os.remove has ↵Kim Alvefur2015-05-151-2/+3
| | | | a file to delete
* mod_storage_xep0227: Close file handle after readingKim Alvefur2015-05-151-0/+1
|
* mod_storage_xep0227: Use configured storage pathKim Alvefur2015-05-151-2/+3
|
* mod_storage_xep0227: Rename to reflect current naming practicesKim Alvefur2015-05-151-0/+163