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)
end
Images.reindex_image(image)
conn
|> put_view(PhilomenaWeb.ImageView)
|> render("_source.html",