This commit is contained in:
Alexander Strizhakov 2020-01-17 11:51:08 +03:00
parent ba87ed7335
commit 34f1d09f3a
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -613,7 +613,7 @@ defp do_block(blocker, blocked, activity_id, local) do
end
@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
with {:ok, result} <-
Repo.transaction(fn -> do_unblock(blocker, blocked, activity_id, local) end) do