From c8747a0523f2dd5a0ddd9e8d9db64e478af75879 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 21 Dec 2019 17:19:27 -0500 Subject: [PATCH] hide featured image if it is hit by the filter --- lib/philomena_web/templates/activity/index.html.slime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/activity/index.html.slime b/lib/philomena_web/templates/activity/index.html.slime index 9a247d0d..0f320c32 100644 --- a/lib/philomena_web/templates/activity/index.html.slime +++ b/lib/philomena_web/templates/activity/index.html.slime @@ -1,6 +1,6 @@ .column-layout aside.column-layout__left#activity-side - = if @featured_image do + = if not is_nil(@featured_image) and not PhilomenaWeb.ImageView.filter_or_spoiler_hits?(@conn, @featured_image) do .center h4.remove-top-margin Featured Image = render PhilomenaWeb.ImageView, "_image_box.html", image: @featured_image, size: :medium, conn: @conn