From: Alexander Strizhakov Date: Fri, 17 Jan 2020 08:51:08 +0000 (+0300) Subject: spec fix X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=34f1d09f3abffd97672832382e48bb8d7f178e90;p=akkoma spec fix --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index def499224..b20f9c29e 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -613,7 +613,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub 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