Merge branch 'develop' into issue/1276
[akkoma] / lib / pleroma / web / common_api / common_api.ex
index afda9ffce1ccbfbaf966b6d32c1ae7aa34473010..2f3bcfc3c979cd24af1070a7138230c009e0d3b5 100644 (file)
@@ -33,7 +33,7 @@ defmodule Pleroma.Web.CommonAPI do
   def unfollow(follower, unfollowed) do
     with {:ok, follower, _follow_activity} <- User.unfollow(follower, unfollowed),
          {:ok, _activity} <- ActivityPub.unfollow(follower, unfollowed),
-         {:ok, _unfollowed} <- User.unsubscribe(follower, unfollowed) do
+         {:ok, _subscription} <- User.unsubscribe(follower, unfollowed) do
       {:ok, follower}
     end
   end