From 69f9d9ff3c38a78136dda889730d8f391be28165 Mon Sep 17 00:00:00 2001 From: pimlie Date: Sat, 22 Jun 2024 12:47:33 +0200 Subject: [PATCH] feat: also blur spoiler previews on post view --- templates/utils.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/utils.html b/templates/utils.html index 2722218..8edb55b 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -62,6 +62,7 @@ {%- endmacro %} {% macro post(post) -%} +{% set post_should_be_blurred = post.flags.spoiler && prefs.blur_spoiler=="on" -%}

@@ -102,12 +103,13 @@

{% if post.media.height == 0 || post.media.width == 0 %} - - Post image + + Post image {% else %} @@ -121,7 +123,7 @@ {% if prefs.use_hls == "on" && !post.media.alt_url.is_empty() %}
-