Fix a typespec issue
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
c5624ae33d
commit
c924975d40
@ -32,7 +32,7 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do
|
||||
@doc """
|
||||
Handle incoming activities
|
||||
"""
|
||||
@spec handle_incoming(map()) :: :error | {:ok, any(), struct()}
|
||||
@spec handle_incoming(map()) :: :error | {:error, atom()} | {:ok, any(), struct()}
|
||||
def handle_incoming(%{"id" => nil}), do: :error
|
||||
def handle_incoming(%{"id" => ""}), do: :error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user