mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
unbreak pages without an image
This commit is contained in:
parent
652177d95e
commit
bd6614452f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue