# HG changeset patch
# User Link Mauve <linkmauve@linkmauve.fr>
# Date 1744218298 -7200
# Node ID 2b20236bce3e89a0016e2bd713089232a93c360c
# Parent  0bd1804baae77ea445b6588b2ea9e50a386bb05b
mod_http_muc_log: Remove compatibility with 0.11

diff -r 0bd1804baae7 -r 2b20236bce3e mod_http_muc_log/mod_http_muc_log.lua
--- a/mod_http_muc_log/mod_http_muc_log.lua	Wed Apr 09 19:04:49 2025 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Wed Apr 09 19:04:58 2025 +0200
@@ -581,16 +581,9 @@
 
 local serve_static
 do
-	if prosody.process_type == "prosody" then
-		-- Prosody >= 0.12
-		local http_files = require "net.http.files";
-		serve = http_files.serve;
-	else
-		-- Prosody <= 0.11
-		serve = module:depends "http_files".serve;
-	end
+	local http_files = require "net.http.files";
 	local mime_map = module:shared("/*/http_files/mime").types or { css = "text/css"; js = "application/javascript" };
-	serve_static = serve({ path = resources; mime_map = mime_map });
+	serve_static = http_files.serve({ path = resources; mime_map = mime_map });
 end
 
 module:provides("http", {