From bd6614452f8e5910e5868f47d64fd7408586c95d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 3 Dec 2019 21:01:52 -0500 Subject: [PATCH] unbreak pages without an image --- lib/philomena_web/templates/layout/_opengraph.html.slime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/layout/_opengraph.html.slime b/lib/philomena_web/templates/layout/_opengraph.html.slime index 5c4648b8..69489a14 100644 --- a/lib/philomena_web/templates/layout/_opengraph.html.slime +++ b/lib/philomena_web/templates/layout/_opengraph.html.slime @@ -3,7 +3,7 @@ meta name="theme-color" meta name="format-detection" content="telephone=no" meta name="robots" content="noindex, nofollow" -= if !is_nil(@conn.assigns.image) and @conn.assigns.image.__meta__.state == :loaded do += if !is_nil(@conn.assigns[:image]) and @conn.assigns.image.__meta__.state == :loaded do - image = @conn.assigns.image - filtered = ImageView.filter_or_spoiler_hits?(@conn, image)