unbreak pages without an image

This commit is contained in:
byte[] 2019-12-03 21:01:52 -05:00
parent 652177d95e
commit bd6614452f

View file

@ -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)