mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
reindex image on source update (#94)
This commit is contained in:
parent
63c89d2faf
commit
fb08f555f4
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue