diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-07-14 19:25:03 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-14 19:25:03 +0000 |
commit | dce8ebc9eabac1a597491a0edc5c145285c55671 (patch) | |
tree | 58d63391301df259173057ce8ddf81ed52014fef /lib | |
parent | 509d8058d99d7455155b6e7fad83fed28f2ae02d (diff) | |
download | pleroma-dce8ebc9eabac1a597491a0edc5c145285c55671.tar.gz |
Unfollow should also unsubscribe
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index f1450b113..949baa3b0 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -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 |