mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
format
This commit is contained in:
parent
57eab20972
commit
a92d7378dd
3 changed files with 9 additions and 6 deletions
|
@ -32,7 +32,8 @@ defmodule PhilomenaWeb.DuplicateReport.AcceptController do
|
||||||
|
|
||||||
defp log_details(conn, _action, report) 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)
|
subject_path: Routes.image_path(conn, :show, report.image)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,7 +32,8 @@ defmodule PhilomenaWeb.DuplicateReport.AcceptReverseController do
|
||||||
|
|
||||||
defp log_details(conn, _action, report) 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)
|
subject_path: Routes.image_path(conn, :show, report.image)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,10 +34,11 @@ defmodule PhilomenaWeb.DuplicateReport.ClaimController do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp log_details(conn, action, _) do
|
defp log_details(conn, action, _) do
|
||||||
body = case action do
|
body =
|
||||||
:create -> "Claimed a duplicate report"
|
case action do
|
||||||
:delete -> "Released a duplicate report"
|
:create -> "Claimed a duplicate report"
|
||||||
end
|
:delete -> "Released a duplicate report"
|
||||||
|
end
|
||||||
|
|
||||||
%{
|
%{
|
||||||
body: body,
|
body: body,
|
||||||
|
|
Loading…
Reference in a new issue