This commit is contained in:
Luna D 2021-11-08 17:21:49 +01:00
parent 57eab20972
commit a92d7378dd
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8
3 changed files with 9 additions and 6 deletions

View file

@ -32,7 +32,8 @@ defmodule PhilomenaWeb.DuplicateReport.AcceptController do
defp log_details(conn, _action, report) do
%{
body: "Accepted duplicate report, merged #{report.image.id} into #{report.duplicate_of_image.id}",
body:
"Accepted duplicate report, merged #{report.image.id} into #{report.duplicate_of_image.id}",
subject_path: Routes.image_path(conn, :show, report.image)
}
end

View file

@ -32,7 +32,8 @@ defmodule PhilomenaWeb.DuplicateReport.AcceptReverseController do
defp log_details(conn, _action, report) do
%{
body: "Reverse-accepted duplicate report, merged #{report.image.id} into #{report.duplicate_of_image.id}",
body:
"Reverse-accepted duplicate report, merged #{report.image.id} into #{report.duplicate_of_image.id}",
subject_path: Routes.image_path(conn, :show, report.image)
}
end

View file

@ -34,10 +34,11 @@ defmodule PhilomenaWeb.DuplicateReport.ClaimController do
end
defp log_details(conn, action, _) do
body = case action do
:create -> "Claimed a duplicate report"
:delete -> "Released a duplicate report"
end
body =
case action do
:create -> "Claimed a duplicate report"
:delete -> "Released a duplicate report"
end
%{
body: body,