aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix gen_pubsub_node:get_state return valuefdie2021-03-251-2/+3
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Rename function argumentsPaweł Chmielowski2021-01-251-6/+6
|
* Skip reading pep nodes that we know won't be requested due to capsPaweł Chmielowski2021-01-251-27/+47
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* mod_pubsub: Fix typo in 'hosts' documentationHolger Weiss2020-08-251-2/+2
| | | | Thanks to Melvin Keskin for spotting this.
* mod_pubsub: Remove 'dag' node plugin documentationHolger Weiss2020-08-181-5/+1
| | | | | Commit c9d3beb9ebbd7a76a74e3e9c22ea62ec21e64a6a removed the 'dag' node/nodetree plugins.
* Update syntax of some options so they are better displayed in DocsBadlop2020-05-121-4/+4
|
* Fix mod_pubsub indentationBadlop2020-04-021-104/+108
|
* Add mod_pubsub configuration documentationBadlop2020-04-021-1/+202
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Limit result set of disco#items for mod_pubsubEvgeny Khramtsov2019-10-241-5/+11
| | | | | | | The size of a list of nodes returned for disco#items request is now controlled by option 'max_nodes_discoitems'. The default value is 100. The name and the default value of the option is chosen to be consistent with mod_muc's 'max_rooms_discoitems' option.
* Replace lager with built-in new logging APIEvgeny Khramtsov2019-10-181-4/+0
| | | | | | | | | | | | | | | This change requires Erlang/OTP-21.0 or higher. The commit also deprecates the following options: - log_rotate_date - log_rate_limit Furthermore, these options have no effect. The logger now fully relies on log_rotate_size, that cannot be 0 anymore. The loglevel option now accepts levels in literal formats. Those are: none, emergency, alert, critical, error, warning, notice, info, debug. Old integer values (0-5) are still supported and automatically converted into literal format.
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-7/+7
|
* Don't retain module option on gen_mod supervisorEvgeny Khramtsov2019-08-041-2/+2
| | | | | | When module's options were updated (e.g. by reloading ejabberd.yml) and, later, the module's process crashed, gen_mod supervisor restarts the process with outdated options. This is now fixed.
* Introduce 'vcard' option for the modules supporting vCardsEvgeny Khramtsov2019-08-021-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The mapping between vCard's XML elements and YAML elements of 'vcard' option is straightforward. For example, if you want mod_muc to return the following vCard: ``` <vCard xmlns='vcard-temp'> <FN>Conferences</FN> <ADR> <WORK/> <STREET>Elm Street</STREET> </ADR> </vCard> ``` you need to set the configuration as: ``` modules: ... mod_muc: vcard: fn: Conferences adr: - work: true street: Elm Street ... ```
* For pubsub items with max_item = 1 use order by in sql queriesPaweł Chmielowski2019-07-311-1/+22
|
* Expose access_model and publish_model in pubsub#metadataEvgeny Khramtsov2019-07-301-0/+2
| | | | Fixes #2931
* Improve handling of errors in tree_action/3Evgeny Khramtsov2019-07-291-14/+33
|
* Appropriately abort pubsub transactionEvgeny Khramtsov2019-07-291-2/+8
|
* Improve handling of errors in pubsub codeEvgeny Khramtsov2019-07-291-394/+577
|
* Fix wrong virtual host in mod_pubsub:send_stanza (#2930)Christophe Romain2019-07-221-1/+5
|
* Fix typos using codespellEvgeny Khramtsov2019-07-161-3/+3
|
* Bump xmpp version and fix revealed bugsEvgeny Khramtsov2019-07-161-4/+5
|
* Fix 'get-pending' command form generationEvgeny Khramtsov2019-07-161-2/+2
|
* Avoid routing packets through a single processEvgeny Khramtsov2019-07-061-12/+16
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-9/+9
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-28/+28
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* mod_pubsub: Check access_model when publishing PEPHolger Weiss2019-06-201-21/+33
| | | | | | | Don't just adhere to the node's access_model when delivering the last PEP item but also when a new item is published. Many thanks to Philipp Hörist for spotting this.
* Reflect recent pubsub changes in configuration transformerEvgeny Khramtsov2019-06-171-1/+3
|
* Get rid of "well-known" typeEvgeny Khramtsov2019-06-151-3/+3
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-91/+100
|
* Revert "Fix pubsub compliance XEP-0060 § 7.1.3.6 (#2864)"Christophe Romain2019-06-111-1/+1
| | | | | | This reverts commit 2fff4d1ea6f32babc3ae06ef877faaacb8ba3c1b. This commit broke the XEP compliance. more details here https://xmpp.org/extensions/xep-0060.html#events
* Fix pubsub compliance XEP-0060 § 7.1.3.6 (#2864)Christophe Romain2019-05-071-1/+1
|
* Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski2019-02-271-3/+3
| | | | | | | 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.
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* mod_pubsub: Improve PEP behavior for 'whitelist'Holger Weiss2018-12-051-2/+6
| | | | | If a PEP node's access_model is set to 'whitelist' (or 'authorize'), send last PEP notifications to the node owner.
* Support for XEP-0411: Bookmarks ConversionEvgeny Khramtsov2018-11-231-1/+1
|
* Improve wordingEvgeniy Khramtsov2018-07-141-11/+6
|
* Enforce pubsub option required/rejected attributesStu Tomlinson2018-07-141-1/+16
| | | | | | | | | | | XEP-0060 states that 'node' and 'jid' attributes to <options> element MUST NOT be included when <options> are specified at same time as <subscribe> : https://xmpp.org/extensions/xep-0060.html#subscriber-configure-subandconfig mod_pubsub will require 'node' and 'jid' attributes on standalone pubsub options requests, and reject subscribe requests that have options that include either 'node' or 'jid'
* Better detection of duplicated routes/hostsEvgeniy Khramtsov2018-07-081-3/+2
|
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-1/+1
|
* Restore forgotten translations from previous commitEvgeniy Khramtsov2018-06-201-1/+1
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-16/+15
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* PubSub purge_node must use a transaction (#2231)Christophe Romain2018-04-241-1/+1
|
* Fix notification payload generated by pubsubPaweł Chmielowski2018-04-121-2/+2
|
* Improve pubsub#itemreply implementation (#2325)Christophe Romain2018-04-121-48/+48
|
* Fix illegal match on previous commitChristophe Romain2018-04-101-1/+2
|
* Improve fix for #2288, don't mask errors on get_itemChristophe Romain2018-04-101-1/+1
|
* Set empty least as a default for force_node_configEvgeniy Khramtsov2018-03-231-1/+2
|