changeset 4849:192b7aaa3888

mod_conversejs: Try to depend on mod_bookmarks in trunk else mod_bookmarks2
author Kim Alvefur <zash@zash.se>
date Wed, 05 Jan 2022 21:22:13 +0100
parents 5001104f0275
children 9187a7adfc39
files mod_conversejs/mod_conversejs.lua
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua	Wed Jan 05 00:06:24 2022 +0100
+++ b/mod_conversejs/mod_conversejs.lua	Wed Jan 05 21:22:13 2022 +0100
@@ -16,9 +16,13 @@
 	module:depends("websocket");
 end);
 
-pcall(function ()
-	module:depends("bookmarks2");
-end);
+if not pcall(function()
+	module:depends("bookmarks");
+end) then
+	pcall(function()
+		module:depends("bookmarks2")
+	end);
+end
 
 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org");