reindex image on source update (#94)

This commit is contained in:
Luna D 2020-04-19 15:05:42 -04:00
parent 63c89d2faf
commit fb08f555f4
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B

View file

@ -32,6 +32,8 @@ defmodule PhilomenaWeb.Image.SourceController do
UserStatistics.inc_stat(conn.assigns.current_user, :metadata_updates) UserStatistics.inc_stat(conn.assigns.current_user, :metadata_updates)
end end
Images.reindex_image(image)
conn conn
|> put_view(PhilomenaWeb.ImageView) |> put_view(PhilomenaWeb.ImageView)
|> render("_source.html", |> render("_source.html",