diff --git a/lib/philomena_web/controllers/admin/artist_link/contact_controller.ex b/lib/philomena_web/controllers/admin/artist_link/contact_controller.ex index 0e0ffc30..2f270db8 100644 --- a/lib/philomena_web/controllers/admin/artist_link/contact_controller.ex +++ b/lib/philomena_web/controllers/admin/artist_link/contact_controller.ex @@ -22,7 +22,7 @@ defmodule PhilomenaWeb.Admin.ArtistLink.ContactController do |> redirect(to: ~p"/admin/artist_links") end - defp log_details(conn, _action, artist_link) do + defp log_details(_conn, _action, artist_link) do %{ body: "Contacted artist #{artist_link.user.name} at #{artist_link.uri}", subject_path: ~p"/profiles/#{artist_link.user}/artist_links/#{artist_link}" diff --git a/lib/philomena_web/controllers/admin/artist_link/reject_controller.ex b/lib/philomena_web/controllers/admin/artist_link/reject_controller.ex index 168251fd..b238efcf 100644 --- a/lib/philomena_web/controllers/admin/artist_link/reject_controller.ex +++ b/lib/philomena_web/controllers/admin/artist_link/reject_controller.ex @@ -21,7 +21,7 @@ defmodule PhilomenaWeb.Admin.ArtistLink.RejectController do |> redirect(to: ~p"/admin/artist_links") end - defp log_details(conn, _action, artist_link) do + defp log_details(_conn, _action, artist_link) do %{ body: "Rejected artist link #{artist_link.uri} created by #{artist_link.user.name}", subject_path: ~p"/profiles/#{artist_link.user}/artist_links/#{artist_link}" diff --git a/lib/philomena_web/controllers/admin/artist_link/verification_controller.ex b/lib/philomena_web/controllers/admin/artist_link/verification_controller.ex index 02a45ab4..836b59d7 100644 --- a/lib/philomena_web/controllers/admin/artist_link/verification_controller.ex +++ b/lib/philomena_web/controllers/admin/artist_link/verification_controller.ex @@ -22,7 +22,7 @@ defmodule PhilomenaWeb.Admin.ArtistLink.VerificationController do |> redirect(to: ~p"/admin/artist_links") end - defp log_details(conn, _action, artist_link) do + defp log_details(_conn, _action, artist_link) do %{ body: "Verified artist link #{artist_link.uri} created by #{artist_link.user.name}", subject_path: ~p"/profiles/#{artist_link.user}/artist_links/#{artist_link}" diff --git a/lib/philomena_web/controllers/admin/batch/tag_controller.ex b/lib/philomena_web/controllers/admin/batch/tag_controller.ex index 59371b6a..512a0972 100644 --- a/lib/philomena_web/controllers/admin/batch/tag_controller.ex +++ b/lib/philomena_web/controllers/admin/batch/tag_controller.ex @@ -68,7 +68,7 @@ defmodule PhilomenaWeb.Admin.Batch.TagController do end end - defp log_details(conn, _action, data) do + defp log_details(_conn, _action, data) do %{ body: "Batch tagged '#{data.tag_list}' on #{data.image_count} images", subject_path: ~p"/profiles/#{conn.assigns.current_user}" diff --git a/lib/philomena_web/controllers/admin/fingerprint_ban_controller.ex b/lib/philomena_web/controllers/admin/fingerprint_ban_controller.ex index 2e1c20f9..3ae57571 100644 --- a/lib/philomena_web/controllers/admin/fingerprint_ban_controller.ex +++ b/lib/philomena_web/controllers/admin/fingerprint_ban_controller.ex @@ -110,7 +110,7 @@ defmodule PhilomenaWeb.Admin.FingerprintBanController do end end - defp log_details(conn, action, ban) do + defp log_details(_conn, action, ban) do body = case action do :create -> "Created a fingerprint ban #{ban.generated_ban_id}" diff --git a/lib/philomena_web/controllers/admin/subnet_ban_controller.ex b/lib/philomena_web/controllers/admin/subnet_ban_controller.ex index f2d0dbaa..31f83b07 100644 --- a/lib/philomena_web/controllers/admin/subnet_ban_controller.ex +++ b/lib/philomena_web/controllers/admin/subnet_ban_controller.ex @@ -112,7 +112,7 @@ defmodule PhilomenaWeb.Admin.SubnetBanController do end end - defp log_details(conn, action, ban) do + defp log_details(_conn, action, ban) do body = case action do :create -> "Created a subnet ban #{ban.generated_ban_id}" diff --git a/lib/philomena_web/controllers/admin/user/verification_controller.ex b/lib/philomena_web/controllers/admin/user/verification_controller.ex index 9478bc42..5f8864ee 100644 --- a/lib/philomena_web/controllers/admin/user/verification_controller.ex +++ b/lib/philomena_web/controllers/admin/user/verification_controller.ex @@ -32,7 +32,7 @@ defmodule PhilomenaWeb.Admin.User.VerificationController do end end - defp log_details(conn, action, user) do + defp log_details(_conn, action, user) do body = case action do :create -> "Granted verification to #{user.name}" diff --git a/lib/philomena_web/controllers/admin/user_ban_controller.ex b/lib/philomena_web/controllers/admin/user_ban_controller.ex index bbaf6b62..7def2541 100644 --- a/lib/philomena_web/controllers/admin/user_ban_controller.ex +++ b/lib/philomena_web/controllers/admin/user_ban_controller.ex @@ -116,7 +116,7 @@ defmodule PhilomenaWeb.Admin.UserBanController do end end - defp log_details(conn, action, ban) do + defp log_details(_conn, action, ban) do body = case action do :create -> "Created a user ban #{ban.generated_ban_id}" diff --git a/lib/philomena_web/controllers/admin/user_controller.ex b/lib/philomena_web/controllers/admin/user_controller.ex index 672147f8..5f236108 100644 --- a/lib/philomena_web/controllers/admin/user_controller.ex +++ b/lib/philomena_web/controllers/admin/user_controller.ex @@ -81,7 +81,7 @@ defmodule PhilomenaWeb.Admin.UserController do assign(conn, :roles, Repo.all(Role)) end - defp log_details(conn, _action, user) do + defp log_details(_conn, _action, user) do %{ body: "Updated user details for #{user.name}", subject_path: ~p"/profiles/#{user}" diff --git a/lib/philomena_web/controllers/duplicate_report/accept_controller.ex b/lib/philomena_web/controllers/duplicate_report/accept_controller.ex index a67760dc..4462fb38 100644 --- a/lib/philomena_web/controllers/duplicate_report/accept_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/accept_controller.ex @@ -30,7 +30,7 @@ defmodule PhilomenaWeb.DuplicateReport.AcceptController do end end - 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}", 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 7c04cc49..873768ff 100644 --- a/lib/philomena_web/controllers/duplicate_report/accept_reverse_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/accept_reverse_controller.ex @@ -30,7 +30,7 @@ defmodule PhilomenaWeb.DuplicateReport.AcceptReverseController do end end - 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}", diff --git a/lib/philomena_web/controllers/duplicate_report/claim_controller.ex b/lib/philomena_web/controllers/duplicate_report/claim_controller.ex index 966eddae..446fa367 100644 --- a/lib/philomena_web/controllers/duplicate_report/claim_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/claim_controller.ex @@ -33,7 +33,7 @@ defmodule PhilomenaWeb.DuplicateReport.ClaimController do |> redirect(to: ~p"/duplicate_reports") end - defp log_details(conn, action, _) do + defp log_details(_conn, action, _) do body = case action do :create -> "Claimed a duplicate report" diff --git a/lib/philomena_web/controllers/duplicate_report/reject_controller.ex b/lib/philomena_web/controllers/duplicate_report/reject_controller.ex index 83626c36..7d428e52 100644 --- a/lib/philomena_web/controllers/duplicate_report/reject_controller.ex +++ b/lib/philomena_web/controllers/duplicate_report/reject_controller.ex @@ -25,7 +25,7 @@ defmodule PhilomenaWeb.DuplicateReport.RejectController do |> redirect(to: ~p"/duplicate_reports") end - defp log_details(conn, _action, report) do + defp log_details(_conn, _action, report) do %{ body: "Rejected duplicate report (#{report.image.id} -> #{report.duplicate_of_image.id})", subject_path: ~p"/duplicate_reports" diff --git a/lib/philomena_web/controllers/image/anonymous_controller.ex b/lib/philomena_web/controllers/image/anonymous_controller.ex index 1855efc9..feed3ff1 100644 --- a/lib/philomena_web/controllers/image/anonymous_controller.ex +++ b/lib/philomena_web/controllers/image/anonymous_controller.ex @@ -33,7 +33,7 @@ defmodule PhilomenaWeb.Image.AnonymousController do end end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Updated anonymity of image >>#{image.id}", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/approve_controller.ex b/lib/philomena_web/controllers/image/approve_controller.ex index 1a44cb76..b67b9619 100644 --- a/lib/philomena_web/controllers/image/approve_controller.ex +++ b/lib/philomena_web/controllers/image/approve_controller.ex @@ -18,7 +18,7 @@ defmodule PhilomenaWeb.Image.ApproveController do |> redirect(to: ~p"/admin/approvals") end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{body: "Approved image #{image.id}", subject_path: ~p"/images/#{image}"} end end diff --git a/lib/philomena_web/controllers/image/comment/approve_controller.ex b/lib/philomena_web/controllers/image/comment/approve_controller.ex index f6b05ca1..c55e734c 100644 --- a/lib/philomena_web/controllers/image/comment/approve_controller.ex +++ b/lib/philomena_web/controllers/image/comment/approve_controller.ex @@ -26,7 +26,7 @@ defmodule PhilomenaWeb.Image.Comment.ApproveController do |> redirect(to: ~p"/images/#{comment.image_id}" <> "#comment_#{comment.id}") end - defp log_details(conn, _action, comment) do + defp log_details(_conn, _action, comment) do %{ body: "Approved comment on image >>#{comment.image_id}", subject_path: ~p"/images/#{comment.image_id}" <> "#comment_#{comment.id}" diff --git a/lib/philomena_web/controllers/image/comment/delete_controller.ex b/lib/philomena_web/controllers/image/comment/delete_controller.ex index 21fc2c1f..65e80700 100644 --- a/lib/philomena_web/controllers/image/comment/delete_controller.ex +++ b/lib/philomena_web/controllers/image/comment/delete_controller.ex @@ -26,7 +26,7 @@ defmodule PhilomenaWeb.Image.Comment.DeleteController do end end - defp log_details(conn, _action, comment) do + defp log_details(_conn, _action, comment) do %{ body: "Destroyed comment on image >>#{comment.image_id}", subject_path: ~p"/images/#{comment.image_id}" <> "#comment_#{comment.id}" diff --git a/lib/philomena_web/controllers/image/comment/hide_controller.ex b/lib/philomena_web/controllers/image/comment/hide_controller.ex index 94241104..50a10f57 100644 --- a/lib/philomena_web/controllers/image/comment/hide_controller.ex +++ b/lib/philomena_web/controllers/image/comment/hide_controller.ex @@ -42,7 +42,7 @@ defmodule PhilomenaWeb.Image.Comment.HideController do end end - defp log_details(conn, action, comment) do + defp log_details(_conn, action, comment) do body = case action do :create -> "Hidden comment on image >>#{comment.image_id} (#{comment.deletion_reason})" diff --git a/lib/philomena_web/controllers/image/comment_lock_controller.ex b/lib/philomena_web/controllers/image/comment_lock_controller.ex index c6c5b2b9..9256f9b6 100644 --- a/lib/philomena_web/controllers/image/comment_lock_controller.ex +++ b/lib/philomena_web/controllers/image/comment_lock_controller.ex @@ -25,7 +25,7 @@ defmodule PhilomenaWeb.Image.CommentLockController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, action, image) do + defp log_details(_conn, action, image) do body = case action do :create -> "Locked comments on image >>#{image.id}" diff --git a/lib/philomena_web/controllers/image/delete_controller.ex b/lib/philomena_web/controllers/image/delete_controller.ex index 3d86cfa6..a9ccbad8 100644 --- a/lib/philomena_web/controllers/image/delete_controller.ex +++ b/lib/philomena_web/controllers/image/delete_controller.ex @@ -70,7 +70,7 @@ defmodule PhilomenaWeb.Image.DeleteController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, action, image) do + defp log_details(_conn, action, image) do body = case action do :create -> "Hidden image >>#{image.id} (#{image.deletion_reason})" diff --git a/lib/philomena_web/controllers/image/description_lock_controller.ex b/lib/philomena_web/controllers/image/description_lock_controller.ex index bde327ac..e7ddc628 100644 --- a/lib/philomena_web/controllers/image/description_lock_controller.ex +++ b/lib/philomena_web/controllers/image/description_lock_controller.ex @@ -25,7 +25,7 @@ defmodule PhilomenaWeb.Image.DescriptionLockController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, action, image) do + defp log_details(_conn, action, image) do body = case action do :create -> "Locked description editing on image >>#{image.id}" diff --git a/lib/philomena_web/controllers/image/destroy_controller.ex b/lib/philomena_web/controllers/image/destroy_controller.ex index 8f4ed867..986773d0 100644 --- a/lib/philomena_web/controllers/image/destroy_controller.ex +++ b/lib/philomena_web/controllers/image/destroy_controller.ex @@ -38,7 +38,7 @@ defmodule PhilomenaWeb.Image.DestroyController do end end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Hard-deleted image >>#{image.id}", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/feature_controller.ex b/lib/philomena_web/controllers/image/feature_controller.ex index 74c19c05..59df5b73 100644 --- a/lib/philomena_web/controllers/image/feature_controller.ex +++ b/lib/philomena_web/controllers/image/feature_controller.ex @@ -33,7 +33,7 @@ defmodule PhilomenaWeb.Image.FeatureController do end end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Featured image >>#{image.id}", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/hash_controller.ex b/lib/philomena_web/controllers/image/hash_controller.ex index 233d5202..ffbeb109 100644 --- a/lib/philomena_web/controllers/image/hash_controller.ex +++ b/lib/philomena_web/controllers/image/hash_controller.ex @@ -16,7 +16,7 @@ defmodule PhilomenaWeb.Image.HashController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Cleared hash of image >>#{image.id}", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/repair_controller.ex b/lib/philomena_web/controllers/image/repair_controller.ex index 10d86773..80a050b7 100644 --- a/lib/philomena_web/controllers/image/repair_controller.ex +++ b/lib/philomena_web/controllers/image/repair_controller.ex @@ -17,7 +17,7 @@ defmodule PhilomenaWeb.Image.RepairController do |> redirect(to: ~p"/images/#{conn.assigns.image}") end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Repaired image >>#{image.id}", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/scratchpad_controller.ex b/lib/philomena_web/controllers/image/scratchpad_controller.ex index 4fddb135..b3cd8e69 100644 --- a/lib/philomena_web/controllers/image/scratchpad_controller.ex +++ b/lib/philomena_web/controllers/image/scratchpad_controller.ex @@ -21,7 +21,7 @@ defmodule PhilomenaWeb.Image.ScratchpadController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Updated mod notes on image >>#{image.id} (#{image.scratchpad})", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/source_history_controller.ex b/lib/philomena_web/controllers/image/source_history_controller.ex index 85f061db..022a270d 100644 --- a/lib/philomena_web/controllers/image/source_history_controller.ex +++ b/lib/philomena_web/controllers/image/source_history_controller.ex @@ -18,7 +18,7 @@ defmodule PhilomenaWeb.Image.SourceHistoryController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, _action, image) do + defp log_details(_conn, _action, image) do %{ body: "Deleted source history for image >>#{image.id}", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/tag_change_controller.ex b/lib/philomena_web/controllers/image/tag_change_controller.ex index b2716558..b38735ca 100644 --- a/lib/philomena_web/controllers/image/tag_change_controller.ex +++ b/lib/philomena_web/controllers/image/tag_change_controller.ex @@ -58,7 +58,7 @@ defmodule PhilomenaWeb.Image.TagChangeController do defp added_filter(query, _params), do: query - 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} on >>#{image.id} from history", subject_path: ~p"/images/#{image}" diff --git a/lib/philomena_web/controllers/image/tag_lock_controller.ex b/lib/philomena_web/controllers/image/tag_lock_controller.ex index 4e6a0e70..c80841c7 100644 --- a/lib/philomena_web/controllers/image/tag_lock_controller.ex +++ b/lib/philomena_web/controllers/image/tag_lock_controller.ex @@ -45,7 +45,7 @@ defmodule PhilomenaWeb.Image.TagLockController do |> redirect(to: ~p"/images/#{image}") end - defp log_details(conn, action, image) do + defp log_details(_conn, action, image) do body = case action do :create -> "Locked tags on image >>#{image.id}" diff --git a/lib/philomena_web/controllers/image/tamper_controller.ex b/lib/philomena_web/controllers/image/tamper_controller.ex index 4ce1ac3c..482bb14a 100644 --- a/lib/philomena_web/controllers/image/tamper_controller.ex +++ b/lib/philomena_web/controllers/image/tamper_controller.ex @@ -31,7 +31,7 @@ defmodule PhilomenaWeb.Image.TamperController do |> redirect(to: ~p"/images/#{conn.assigns.image}") end - defp log_details(conn, _action, data) do + defp log_details(_conn, _action, data) do image = data.image vote_type = diff --git a/lib/philomena_web/controllers/tag/image_controller.ex b/lib/philomena_web/controllers/tag/image_controller.ex index 21d06983..96ed3899 100644 --- a/lib/philomena_web/controllers/tag/image_controller.ex +++ b/lib/philomena_web/controllers/tag/image_controller.ex @@ -40,7 +40,7 @@ defmodule PhilomenaWeb.Tag.ImageController do |> redirect(to: ~p"/tags/#{conn.assigns.tag}") end - defp log_details(conn, action, tag) do + defp log_details(_conn, action, tag) do body = case action do :update -> "Updated image on tag '#{tag.name}'" diff --git a/lib/philomena_web/controllers/tag_controller.ex b/lib/philomena_web/controllers/tag_controller.ex index 3fac85cd..2c94d3e5 100644 --- a/lib/philomena_web/controllers/tag_controller.ex +++ b/lib/philomena_web/controllers/tag_controller.ex @@ -172,7 +172,7 @@ defmodule PhilomenaWeb.TagController do end end - defp log_details(conn, action, tag) do + defp log_details(_conn, action, tag) do body = case action do :update -> "Updated details on tag '#{tag.name}'" diff --git a/lib/philomena_web/controllers/topic/hide_controller.ex b/lib/philomena_web/controllers/topic/hide_controller.ex index 247741d5..8eb947cf 100644 --- a/lib/philomena_web/controllers/topic/hide_controller.ex +++ b/lib/philomena_web/controllers/topic/hide_controller.ex @@ -54,7 +54,7 @@ defmodule PhilomenaWeb.Topic.HideController do end end - defp log_details(conn, action, topic) do + defp log_details(_conn, action, topic) do body = case action do :create -> diff --git a/lib/philomena_web/controllers/topic/lock_controller.ex b/lib/philomena_web/controllers/topic/lock_controller.ex index aa4bf13f..9cb95c7f 100644 --- a/lib/philomena_web/controllers/topic/lock_controller.ex +++ b/lib/philomena_web/controllers/topic/lock_controller.ex @@ -53,7 +53,7 @@ defmodule PhilomenaWeb.Topic.LockController do end end - defp log_details(conn, action, topic) do + defp log_details(_conn, action, topic) do body = case action do :create -> "Locked topic '#{topic.title}' (#{topic.lock_reason}) in #{topic.forum.name}" diff --git a/lib/philomena_web/controllers/topic/move_controller.ex b/lib/philomena_web/controllers/topic/move_controller.ex index d8c91c3f..fcd17c21 100644 --- a/lib/philomena_web/controllers/topic/move_controller.ex +++ b/lib/philomena_web/controllers/topic/move_controller.ex @@ -39,7 +39,7 @@ defmodule PhilomenaWeb.Topic.MoveController do end end - defp log_details(conn, _action, topic) do + defp log_details(_conn, _action, topic) do %{ body: "Topic '#{topic.title}' moved to #{topic.forum.name}", subject_path: ~p"/forums/#{topic.forum}/topics/#{topic}" diff --git a/lib/philomena_web/controllers/topic/post/approve_controller.ex b/lib/philomena_web/controllers/topic/post/approve_controller.ex index 01e11daf..1af98931 100644 --- a/lib/philomena_web/controllers/topic/post/approve_controller.ex +++ b/lib/philomena_web/controllers/topic/post/approve_controller.ex @@ -38,7 +38,7 @@ defmodule PhilomenaWeb.Topic.Post.ApproveController do end end - defp log_details(conn, _action, post) do + defp log_details(_conn, _action, post) do %{ body: "Approved forum post ##{post.id} in topic '#{post.topic.title}'", subject_path: diff --git a/lib/philomena_web/controllers/topic/post/delete_controller.ex b/lib/philomena_web/controllers/topic/post/delete_controller.ex index 72e39536..9fa2b490 100644 --- a/lib/philomena_web/controllers/topic/post/delete_controller.ex +++ b/lib/philomena_web/controllers/topic/post/delete_controller.ex @@ -37,7 +37,7 @@ defmodule PhilomenaWeb.Topic.Post.DeleteController do end end - defp log_details(conn, _action, post) do + defp log_details(_conn, _action, post) do %{ body: "Destroyed forum post ##{post.id} in topic '#{post.topic.title}'", subject_path: diff --git a/lib/philomena_web/controllers/topic/post/hide_controller.ex b/lib/philomena_web/controllers/topic/post/hide_controller.ex index ed3f69d9..da423f3b 100644 --- a/lib/philomena_web/controllers/topic/post/hide_controller.ex +++ b/lib/philomena_web/controllers/topic/post/hide_controller.ex @@ -63,7 +63,7 @@ defmodule PhilomenaWeb.Topic.Post.HideController do end end - defp log_details(conn, action, post) do + defp log_details(_conn, action, post) do body = case action do :create -> diff --git a/lib/philomena_web/controllers/topic/stick_controller.ex b/lib/philomena_web/controllers/topic/stick_controller.ex index d413be6d..a6ee72c4 100644 --- a/lib/philomena_web/controllers/topic/stick_controller.ex +++ b/lib/philomena_web/controllers/topic/stick_controller.ex @@ -52,7 +52,7 @@ defmodule PhilomenaWeb.Topic.StickController do end end - defp log_details(conn, action, topic) do + defp log_details(_conn, action, topic) do body = case action do :create -> "Stickied topic '#{topic.title}' in #{topic.forum.name}"