From 84eef46c7825bcb370c18aab3f3e415ac04fe5ad Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 8 Dec 2019 14:30:17 -0500 Subject: [PATCH] fallback for images without a tag cache --- lib/philomena_web/views/image_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/views/image_view.ex b/lib/philomena_web/views/image_view.ex index 2faafb80..335b7e72 100644 --- a/lib/philomena_web/views/image_view.ex +++ b/lib/philomena_web/views/image_view.ex @@ -154,7 +154,7 @@ defmodule PhilomenaWeb.ImageView do defp image_filter_data(image) do %{ id: image.id, - "namespaced_tags.name": String.split(image.tag_list_plus_alias_cache, ", "), + "namespaced_tags.name": String.split(image.tag_list_plus_alias_cache || "", ", "), score: image.score, faves: image.faves_count, upvotes: image.upvotes_count,