aboutsummaryrefslogtreecommitdiff
path: root/src/node_flat.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-11Update copyright year to 2022Badlop1-1/+1
2021-10-30PubSub: Add delete_expired_pubsub_items commandHolger Weiss1-1/+17
Support XEP-0060's pubsub#item_expire feature by adding a command for deleting expired PubSub items. Thanks to Ammonit Measurement GmbH for sponsoring this work.
2021-08-23node_flat: Avoid catch-all clauses for RSMHolger Weiss1-7/+4
Apply the change made in the previous commit to Mnesia storage as well.
2021-08-22PubSub: Add delete_old_pubsub_items commandHolger Weiss1-1/+12
Add a command for keeping only the specified number of items on each node and removing all older items. This might be especially useful if nodes may be configured to have no 'max_items' limit. Thanks to Ammonit Measurement GmbH for sponsoring this work.
2021-08-21PubSub: Support unlimited number of itemsHolger Weiss1-1/+2
Allow for setting the mod_pubsub option 'max_items_node' to 'unlimited'. If clients then request a 'max_items' limit of 'max', old items aren't deleted when publishing new ones. Thanks to Ammonit Measurement GmbH for sponsoring this work.
2021-06-14Fix reverse order of items when using <before/> in Pubsub with RSM (#3621)Badlop1-2/+2
2021-06-08Return proper index when using after of before in PubSub with RSM (#3618)Badlop1-10/+13
This fixes Index attribute in examples from: https://xmpp.org/extensions/xep-0059.html#forwards https://xmpp.org/extensions/xep-0059.html#backwards
2021-06-08Fix index attribute when getting last page from PubSub with RSM (#3618)Badlop1-1/+1
This fixes Example 11 from "2.5 Requesting the Last Page in a Result Set": https://xmpp.org/extensions/xep-0059.html#last
2021-06-08Support for simple limiting the number of items in PubSub with RSM (#3618)Badlop1-0/+2
This fixes crash in Example 1 from "2.1 Limiting the Number of Items": https://xmpp.org/extensions/xep-0059.html#limit
2021-01-27Update newest copyright year to 2021 (#3464)Badlop1-1/+1
2020-09-03Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson1-1/+1
2020-01-28Update copyright to 2020 (#3149)Badlop1-1/+1
2019-07-31For pubsub items with max_item = 1 use order by in sql queriesPaweł Chmielowski1-1/+4
2019-07-29Improve handling of errors in pubsub codeEvgeny Khramtsov1-17/+18
2019-07-16Fix typos using codespellEvgeny Khramtsov1-2/+2
2019-02-27Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski1-1/+1
Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
2019-01-08Update copyright to 2019 (#2756)Badlop1-1/+1
2018-09-02Correctly handle empty result with RSMEvgeniy Khramtsov1-33/+39
Fixes #2588
2018-01-27Find and fix typos using 'codespell'Evgeniy Khramtsov1-11/+11
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-12-28Don't force rsm when max_items is not defined (#2189)Christophe Romain1-8/+1
2017-12-20Add pubsub#multi-items to features list (#2162)Christophe Romain1-0/+1
2017-12-12Support pubsub#publish-options PRECONDITIONsHolger Weiss1-0/+1
Support PubSub publishing options that are specified as PRECONDITIONs as per XEP-0060 v1.14.
2017-11-15Cleanup pubsub subscriptions quering, fix pep caseChristophe Romain1-11/+4
2017-10-25Fix delete item from unregistered user (#2067)Christophe Romain1-7/+16
2017-10-25Add basic PubSub meta-data support (#1421)Christophe Romain1-1/+0
2017-09-27PubSub: add RSM support for mnesia backendChristophe Romain1-3/+67
2017-09-27PubSub: enforce controls on publish and deleteChristophe Romain1-16/+19
2017-09-27Unbind unused variableChristophe Romain1-1/+1
2017-09-27PubSub: fix get_items behaviour with mnesiaChristophe Romain1-3/+4
2017-03-30Refactor pubsub's get_last_itemsChristophe Romain1-8/+22
2017-02-23Avoid orphan_item leak on affiliation/subscription removal (#1563)Christophe Romain1-1/+7
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-12-09Enforce pubsub node removal, revert previous commit (#1320)Christophe Romain1-4/+25
This reverts commit 2976c2d921fcc4eb0c55abb54842351cc0adfb86. and enforce node purge/removal instead
2016-12-09Enforce affiliation removal, remove corresponding items (#1320)Christophe Romain1-15/+15
2016-11-30Improve handling of mnesia schemaChristophe Romain1-2/+2
2016-11-15Minor cosmetic changes on pubsub codeChristophe Romain1-1/+1
2016-10-07Add xdata generator and make some code using itEvgeniy Khramtsov1-1/+2
2016-09-30PubSub: fix error type on item deletion with insufficient priviledgeChristophe Romain1-5/+5
2016-09-29PubSub: fix error type on item deletion with insufficient priviledgeChristophe Romain1-5/+5
2016-09-13Make common tests working againEvgeniy Khramtsov1-1/+1
2016-09-08Improve pubsub codeEvgeniy Khramtsov1-37/+37
2016-05-25Add support for PubSub publishing optionsHolger Weiss1-2/+3
Add code necessary to support publishing options as described in XEP-0060, #7.1.5. A node plugin that expects publishing options must add <<"publish-options">> to the features/0 list and then handle the publishing options handed over to the publish_item/7 call. Signed-off-by: Christian Ulrich <christian@rechenwerk.net>
2016-04-21Set default value for pubsub#itemreply optionHolger Weiss1-1/+2
2016-01-13Update copyright to 2016 (#901)Badlop1-1/+1
2015-12-16Don't read pubsub options when plugin does not use themChristophe Romain1-1/+1
This also revert commit 6052f7b
2015-12-15Fix pubsub headersChristophe Romain1-20/+19
2015-12-14Fix pubsub test errorPaweł Chmielowski1-1/+1
2015-12-11Disable use of multi-subscribe and subscription-option on standard pluginsChristophe Romain1-15/+22
2015-12-07Remove now() in pubsub codePaweł Chmielowski1-1/+1