Merge branch 'feature/addressable-lists' into 'develop'
[akkoma] / lib / pleroma / web / common_api / common_api.ex
index f764e87af7a4e02afafca43346764c3dfcf660d8..44669b22820a5c481cc959a32a4e05bacfa45003 100644 (file)
@@ -31,7 +31,8 @@ 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) do
+         {:ok, _activity} <- ActivityPub.unfollow(follower, unfollowed),
+         {:ok, _unfollowed} <- User.unsubscribe(follower, unfollowed) do
       {:ok, follower}
     end
   end