From 893f57cdefc1c5c6aefe1bbeaf651fb87af6cc11 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Mon, 5 Feb 2024 05:08:07 -0500 Subject: [PATCH] apply commit 938319fd21c919872c4d2b9d7fac0b5a720a8fd7 Author: discomrade Date: Tue Sep 28 08:06:03 2021 +0000 Enable download with filename without JavaScript --- templates/post/fileinfo.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html index 18fbd422..d343ba49 100644 --- a/templates/post/fileinfo.html +++ b/templates/post/fileinfo.html @@ -22,9 +22,9 @@ {% if config.show_filename and file.filename %} , {% if file.filename|length > config.max_filename_display %} - {{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }} + {{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }} {% else %} - {{ file.filename|e|bidi_cleanup }} + {{ file.filename|e|bidi_cleanup }} {% endif %} {% endif %} )