mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
fallback for images without a tag cache
This commit is contained in:
parent
179d8a27d9
commit
84eef46c78
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ defmodule PhilomenaWeb.ImageView do
|
||||||
defp image_filter_data(image) do
|
defp image_filter_data(image) do
|
||||||
%{
|
%{
|
||||||
id: image.id,
|
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,
|
score: image.score,
|
||||||
faves: image.faves_count,
|
faves: image.faves_count,
|
||||||
upvotes: image.upvotes_count,
|
upvotes: image.upvotes_count,
|
||||||
|
|
Loading…
Reference in a new issue