From 49f7cf4f42bed3626a20eb656361c4364ef2383b Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:53:13 -0300 Subject: [PATCH] fileinfo: fix filename visible when image is spoiler --- templates/post/fileinfo.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html index 7d418807..ae1dc092 100644 --- a/templates/post/fileinfo.html +++ b/templates/post/fileinfo.html @@ -20,7 +20,10 @@ {% endif %} {% endif %} {% if config.show_filename and file.filename %} - , {% if file.filename|length > config.max_filename_display %} + , + {% if file.thumb == 'spoiler' %} + {% trans %}Spoiler Image{% endtrans %} + {% elseif file.filename|length > config.max_filename_display %} {{ file.filename|truncate_filename(config.max_filename_display)|e|bidi_cleanup }} {% else %} {{ file.filename|e|bidi_cleanup }}