spec fix
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 17 Jan 2020 08:51:08 +0000 (11:51 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 1 Mar 2020 09:01:39 +0000 (12:01 +0300)
lib/pleroma/web/activity_pub/activity_pub.ex

index def4992245356fdc1bd937f0eeea293a168b2e5c..b20f9c29e8db658b0ff7ff66c6cc49bda8369311 100644 (file)
@@ -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