From a92d7378ddfd30d33badfed31c2b197ad9f38ed8 Mon Sep 17 00:00:00 2001 From: Luna D Date: Mon, 8 Nov 2021 17:21:49 +0100 Subject: [PATCH] format --- .../controllers/duplicate_report/accept_controller.ex | 3 ++- .../duplicate_report/accept_reverse_controller.ex | 3 ++- .../controllers/duplicate_report/claim_controller.ex | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/philomena_web/controllers/duplicate_report/accept_controller.ex b/lib/philomena_web/controllers/duplicate_report/accept_controller.ex index 5f4401aa..2b21e306 100644 --- a/lib/philomena_web/controllers/duplicate_report/accept_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/accept_controller.ex @@ -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 diff --git a/lib/philomena_web/controllers/duplicate_report/accept_reverse_controller.ex b/lib/philomena_web/controllers/duplicate_report/accept_reverse_controller.ex index 276945f2..d112ce27 100644 --- a/lib/philomena_web/controllers/duplicate_report/accept_reverse_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/accept_reverse_controller.ex @@ -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 diff --git a/lib/philomena_web/controllers/duplicate_report/claim_controller.ex b/lib/philomena_web/controllers/duplicate_report/claim_controller.ex index 24ab0b4d..d091381b 100644 --- a/lib/philomena_web/controllers/duplicate_report/claim_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/claim_controller.ex @@ -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,