aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Backed out changeset 27d800ddc3b0 (see below)Matthew Wild2018-08-181-2/+2
| | | | | | | | | | | | | | | | | | It's uncertain whether item not existing should be success and nil, or fail with an error. XEP-0060's "fetch most recent item" actually fetches a list of up to N items. N here is a maximum, not a minimum. The feeling is that no items is simply an empty list, not a failure of the operation.
* | util.pubsub: get_last_item(): Fail with item-not-found if no item yet publishedMatthew Wild2018-08-181-2/+2
| |
* | util.pubsub: get_last_item(): Return error if node does not existMatthew Wild2018-08-181-0/+6
| |
* | pubsub.lib, util.pubsub: Move precondition checks to util.pubsubMatthew Wild2018-08-182-33/+20
| |
* | mod_pubsub: Advertise support for subscription-optionsKim Alvefur2018-08-181-1/+1
| | | | | | | | Initial support was added in d614003a82c1
* | mod_pubsub: Advertise support for node meta-dataKim Alvefur2018-08-181-1/+1
| | | | | | | | Node metadata in disco initially added in b6cb0a8f75b1
* | mod_pep: Remove feature for persistence already added elsewereKim Alvefur2018-08-181-1/+0
| | | | | | | | This is added in pubsub.lib
* | mod_pep: Remove already included access model featureKim Alvefur2018-08-181-1/+0
| | | | | | | | access-* is added in pubsub.lib based on node defaults
* | util.pubsub: Add comment to clarify return valuesMatthew Wild2018-08-181-0/+1
| |
* | MUC: Direct PubSub queries to occupants to their real bare JIDKim Alvefur2018-08-181-1/+2
| | | | | | | | | | This allows accessing PEP nodes of participants without knowing their real JIDs.
* | util.time: Add brief testsKim Alvefur2018-08-181-0/+31
| |
* | MUC: Fix traceback when failing to restore a roomMatthew Wild2018-08-171-0/+3
| | | | | | | | | | When a room exists in the DB but cannot be loaded (e.g. due to max_rooms or a pre-restore handler) restore_room()/get_room_from_jid() returns false.
* | MUC: Pass missing argument to log messageKim Alvefur2018-08-171-1/+1
| |
* | mod_pep: Respect setting for whether to include payload in notificationsKim Alvefur2018-08-161-0/+5
| |
* | mod_pep: Respect settings for which kinds of notifications to sendKim Alvefur2018-08-161-1/+6
| |
* | mod_pubsub: Add support for thin notifications (without the full payload)Kim Alvefur2018-08-162-0/+10
| |
* | mod_pubsub: Only attach publisher on normal "item" broadcastsKim Alvefur2018-08-161-2/+4
| | | | | | | | The 'publisher' is only on <item> in the schema.
* | mod_pubsub: Use the correct form fieldKim Alvefur2018-08-161-3/+3
| |
* | mod_pubsub: Specify defaults for notification settingsKim Alvefur2018-08-161-0/+3
| |
* | mod_pubsub: Make notification of item retraction configurableKim Alvefur2018-08-161-0/+7
| |
* | mod_pubsub: Make notification of node deletion configurableKim Alvefur2018-08-161-0/+7
| |
* | mod_pubsub: Add support for "quiet nodes" (disabling notifications)Kim Alvefur2018-08-161-0/+7
| |
* | mod_pubsub: Prepare to support turning notifications off for each kind of ↵Kim Alvefur2018-08-161-0/+5
| | | | | | | | broadcast
* | mod_pubsub: Add payload type metadata fieldKim Alvefur2018-08-131-0/+12
| |
* | util.pubsub: Pass "retract" as the type of such broadcastsKim Alvefur2018-08-163-1/+8
| | | | | | | | | | | | | | | | This moves some XEP-0060 awkwardness out of util.pubsub and into mod_pubsub A retraction is broadcast in an <items> container, whereas most other kinds of broadcasts are in a container with a name matching the 'kind' attribute.
* | util.pubsub: Silence warnings in tests [luacheck]Kim Alvefur2018-08-161-1/+1
| | | | | | | | Warnings introduced in c53663e13b51 according to bisect
* | util.async: Remove sleep functionKim Alvefur2018-08-121-8/+0
| | | | | | | | | | Dependency on util.timer indirectly caused net.server to be initialized before the config was read, so server_select was always chosen.
* | util.pubsub tests: Add TODOMatthew Wild2018-08-121-0/+10
| |
* | util.pubsub tests: Add tests to confirm new access model is enforced on ↵Matthew Wild2018-08-121-0/+24
| | | | | | | | config change
* | util.pubsub tests: Add initial node config testsMatthew Wild2018-08-121-0/+18
| |
* | util.pubsub tests: Extend publishing tests to check for correct notification ↵Matthew Wild2018-08-121-1/+13
| | | | | | | | behaviour on subscribe/unsubscribe
* | util.pubsub: Allow outcasts to get their subscription statusMatthew Wild2018-08-121-0/+2
| |
* | util.pubsub tests: Add tests for publish_model (publishers, open, subscribers)Matthew Wild2018-08-121-6/+64
| |
* | net.http.codes: "Correct" range of unassigned codes (thanks pep.)Kim Alvefur2018-08-121-1/+1
| |
* | util.pubsub tests: Add some initial access model tests (open and whitelist)Matthew Wild2018-08-111-0/+52
| |
* | spec: Correct order of arguments to asserts in configmanager testsKim Alvefur2018-08-111-10/+10
| | | | | | | | assert.foo(expect, got, ...)
* | net.http.codes: Regenerate from IANA registry with toolKim Alvefur2018-08-111-47/+59
| |
* | tools: Add a tool to generate net.http.codes from IANA registryKim Alvefur2018-02-081-0/+43
| |
* | util-src/makefile: Add util.time to BSD makefileKim Alvefur2018-08-111-1/+1
| |
* | util.time: Allow for already set constantKim Alvefur2018-08-111-0/+2
| |
* | util.time: Add monotonic timeKim Alvefur2017-03-091-0/+9
| |
* | util.time: Convert to CKim Alvefur2017-03-093-9/+25
| |
* | util.pubsub: For open nodes, default affiliation is "member"Matthew Wild2018-08-091-1/+1
| | | | | | | | | | | | | | | | | | This allows entities without an explicit affiliation to retrieve items, which is specified by the XEP. Table 6: "Node Access Models" states that for 'open' nodes, "any entity may retrieve items from the node". See also discussion at: https://mail.jabber.org/pipermail/standards/2018-August/035320.html
* | mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new ↵Matthew Wild2018-08-082-7/+26
| | | | | | | | 'none' affiliation to better match XEP-0060
* | util.pubsub: Drop now redundant capabilities from testsKim Alvefur2018-08-081-6/+0
| |
* | mod_pubsub, mod_pep, util.pubsub: Move capability definitions into ↵Matthew Wild2018-08-083-157/+77
| | | | | | | | util.pubsub to avoid duplication
* | mod_pep: Add comment explaining 'none' affiliationMatthew Wild2018-08-081-0/+3
| |
* | mod_pep: Remove "subscriber" affiliation in favour of "none"Matthew Wild2018-08-081-23/+1
| | | | | | | | | | It ended up with identical capabilities to "none", and isn't a standard affiliation defined by XEP-0060 anyway.
* | mod_pep: Loosen restrictions on the "none" affiliationKim Alvefur2018-08-081-6/+6
| | | | | | | | | | | | | | This allows non-contacts access to data in nodes with the "open" access model. Thanks gerald
* | mod_pep: Change default affiliation in the "presence" access model to ↵Kim Alvefur2018-08-081-0/+1
| | | | | | | | | | | | | | "restricted" for non-contacts This lets us loosen the restrictions of the "none" affiliation, so that the "open" access model allows anyone basic access.