Mercurial > prosody-modules
comparison mod_bookmarks2/mod_bookmarks2.lua @ 4866:a1181413a0eb
mod_bookmarks2: Skip send_last_published_item (unavailable in 0.11) (thanks carlos)
Not the most important setting, we can live without it for now.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Jan 2022 00:38:32 +0100 |
parents | 9187a7adfc39 |
children | 347894e08b4f |
comparison
equal
deleted
inserted
replaced
4865:bd0a1f917d98 | 4866:a1181413a0eb |
---|---|
22 | 22 |
23 if not pcall(mod_pep.check_node_config, nil, nil, default_options) then | 23 if not pcall(mod_pep.check_node_config, nil, nil, default_options) then |
24 -- 0.11 or earlier not supporting max_items="max" trows an error here | 24 -- 0.11 or earlier not supporting max_items="max" trows an error here |
25 module:log("debug", "Setting max_items=pep_max_items because 'max' is not supported in this version"); | 25 module:log("debug", "Setting max_items=pep_max_items because 'max' is not supported in this version"); |
26 default_options["max_items"] = module:get_option_number("pep_max_items", 256); | 26 default_options["max_items"] = module:get_option_number("pep_max_items", 256); |
27 default_options["send_last_published_item"] = nil; -- not available in 0.11 | |
27 end | 28 end |
28 | 29 |
29 module:hook("account-disco-info", function (event) | 30 module:hook("account-disco-info", function (event) |
30 -- This Time it’s Serious! | 31 -- This Time it’s Serious! |
31 event.reply:tag("feature", { var = namespace.."#compat" }):up(); | 32 event.reply:tag("feature", { var = namespace.."#compat" }):up(); |