summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-01-26 20:44:14 -0500
committerMark Felder <feld@feld.me>2024-01-26 21:03:41 -0500
commit6e0945354d569a11c8995b65972db29811054128 (patch)
tree25c155f491777a1f37390707f6f7d2421c5b8596
parente834343496f98685079a4ed070573c23069f7a20 (diff)
downloadpleroma-6e0945354d569a11c8995b65972db29811054128.tar.gz
pleroma-6e0945354d569a11c8995b65972db29811054128.zip
Pleroma.ModerationLog: fix invalid type
-rw-r--r--lib/pleroma/moderation_log.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/moderation_log.ex b/lib/pleroma/moderation_log.ex
index 7203423e2..7f6962607 100644
--- a/lib/pleroma/moderation_log.ex
+++ b/lib/pleroma/moderation_log.ex
@@ -121,7 +121,7 @@ defmodule Pleroma.ModerationLog do
defp prepare_log_data(attrs), do: attrs
- @spec insert_log(log_params()) :: {:ok, ModerationLog} | {:error, any}
+ @spec insert_log(log_params()) :: {:ok, ModerationLog.t()} | {:error, any}
def insert_log(%{actor: %User{}, subject: subjects, permission: permission} = attrs) do
data =
attrs
@@ -248,7 +248,7 @@ defmodule Pleroma.ModerationLog do
|> insert_log_entry_with_message()
end
- @spec insert_log_entry_with_message(ModerationLog) :: {:ok, ModerationLog} | {:error, any}
+ @spec insert_log_entry_with_message(ModerationLog.t()) :: {:ok, ModerationLog.t()} | {:error, any}
defp insert_log_entry_with_message(entry) do
entry.data["message"]
|> put_in(get_log_entry_message(entry))