spec fix
This commit is contained in:
parent
ba87ed7335
commit
34f1d09f3a
|
@ -613,7 +613,7 @@ defp do_block(blocker, blocked, activity_id, local) do
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec unblock(User.t(), User.t(), String.t() | nil, boolean()) ::
|
@spec unblock(User.t(), User.t(), String.t() | nil, boolean()) ::
|
||||||
{:ok, Activity.t()} | {:error, any()}
|
{:ok, Activity.t()} | {:error, any()} | nil
|
||||||
def unblock(blocker, blocked, activity_id \\ nil, local \\ true) do
|
def unblock(blocker, blocked, activity_id \\ nil, local \\ true) do
|
||||||
with {:ok, result} <-
|
with {:ok, result} <-
|
||||||
Repo.transaction(fn -> do_unblock(blocker, blocked, activity_id, local) end) do
|
Repo.transaction(fn -> do_unblock(blocker, blocked, activity_id, local) end) do
|
||||||
|
|
Loading…
Reference in New Issue