This commit is contained in:
Maxim Filippov 2019-08-31 01:09:48 +03:00
parent f182f0f6bd
commit 4d6e22bb9b

View file

@ -248,8 +248,12 @@ defmodule Pleroma.ModerationLog do
|> insert_log_entry_with_message()
end
@spec insert_log(%{actor: User, action: String.t(), nicknames: [String.t()], tags: [String.t()]}) ::
{:ok, ModerationLog} | {:error, any}
@spec insert_log(%{
actor: User,
action: String.t(),
nicknames: [String.t()],
tags: [String.t()]
}) :: {:ok, ModerationLog} | {:error, any}
def insert_log(%{
actor: %User{} = actor,
nicknames: nicknames,