mod_bookmarks: Remove compatibility with 0.11
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tue, 04 Jan 2022 23:16:02 +0100
changeset 12153 bbbf0dd90b6d
parent 12152 b63bb2c4b6d9
child 12154 653a48b5a25b
mod_bookmarks: Remove compatibility with 0.11
plugins/mod_bookmarks.lua
--- a/plugins/mod_bookmarks.lua	Tue Jan 04 23:04:14 2022 +0100
+++ b/plugins/mod_bookmarks.lua	Tue Jan 04 23:16:02 2022 +0100
@@ -20,12 +20,6 @@
 	["access_model"] = "whitelist";
 };
 
-if not mod_pep.check_node_config(nil, nil, default_options) then
-	-- 0.11 or earlier not supporting max_items="max" trows an error here
-	module:log("debug", "Setting max_items=pep_max_items because 'max' is not supported in this version");
-	default_options["max_items"] = module:get_option_number("pep_max_items", 256);
-end
-
 module:hook("account-disco-info", function (event)
 	-- This Time it’s Serious!
 	event.reply:tag("feature", { var = namespace.."#compat" }):up();