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
1 changed files with 1 additions and 1 deletions

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