fix: requested changes

This commit is contained in:
Floorb 2023-05-04 23:03:44 -04:00
parent 9ec25a05ec
commit 9956ce2cb6

View file

@ -60,14 +60,14 @@ defmodule PhilomenaWeb.Image.TagChangeController do
defp log_details(conn, _action, %{image: image, details: details}) do defp log_details(conn, _action, %{image: image, details: details}) do
%{ %{
body: "Deleted tag change (#{details}) from history", body: "Deleted tag change #{details} on >>#{image.id} from history",
subject_path: Routes.image_path(conn, :show, image) subject_path: Routes.image_path(conn, :show, image)
} }
end end
defp tag_change_details(%TagChange{added: true, tag: tag}), defp tag_change_details(%TagChange{added: true, tag: tag}),
do: "added tag \"#{tag.name}\"" do: "+#{tag.name}"
defp tag_change_details(%TagChange{added: false, tag: tag}), defp tag_change_details(%TagChange{added: false, tag: tag}),
do: "removed tag \"#{tag.name}\"" do: "-#{tag.name}"
end end