Software /
code /
prosody
Comparison
plugins/mod_bookmarks.lua @ 12149:bbbf0dd90b6d
mod_bookmarks: Remove compatibility with 0.11
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 04 Jan 2022 23:16:02 +0100 |
parent | 12148:b63bb2c4b6d9 |
child | 12152:0939675955f1 |
comparison
equal
deleted
inserted
replaced
12148:b63bb2c4b6d9 | 12149:bbbf0dd90b6d |
---|---|
17 ["persist_items"] = true; | 17 ["persist_items"] = true; |
18 ["max_items"] = "max"; | 18 ["max_items"] = "max"; |
19 ["send_last_published_item"] = "never"; | 19 ["send_last_published_item"] = "never"; |
20 ["access_model"] = "whitelist"; | 20 ["access_model"] = "whitelist"; |
21 }; | 21 }; |
22 | |
23 if not mod_pep.check_node_config(nil, nil, default_options) then | |
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"); | |
26 default_options["max_items"] = module:get_option_number("pep_max_items", 256); | |
27 end | |
28 | 22 |
29 module:hook("account-disco-info", function (event) | 23 module:hook("account-disco-info", function (event) |
30 -- This Time it’s Serious! | 24 -- This Time it’s Serious! |
31 event.reply:tag("feature", { var = namespace.."#compat" }):up(); | 25 event.reply:tag("feature", { var = namespace.."#compat" }):up(); |
32 event.reply:tag("feature", { var = namespace.."#compat-pep" }):up(); | 26 event.reply:tag("feature", { var = namespace.."#compat-pep" }):up(); |