From: rubenwardy Date: Sun, 24 May 2020 13:46:50 +0000 (+0100) Subject: Add engine version string to ContentDB API request (#9890) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b3c79906d4b63a2a1a296b6aad6657e86619b300;p=oweals%2Fminetest.git Add engine version string to ContentDB API request (#9890) --- diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index ce5c061c6..3f01d4474 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -198,10 +198,11 @@ function store.load() assert(core.create_dir(tmpdir)) - local base_url = core.settings:get("contentdb_url") + local version = core.get_version() + local base_url = core.settings:get("contentdb_url") local url = base_url .. "/api/packages/?type=mod&type=game&type=txp&protocol_version=" .. - core.get_max_supp_proto() + core.get_max_supp_proto() .. "&engine_version=" .. version.string for _, item in pairs(core.settings:get("contentdb_flag_blacklist"):split(",")) do item = item:trim()