Make move_following worker follow then unfollow

Ref: emit-move
This commit is contained in:
Tusooa Zhu 2021-09-22 15:30:04 -04:00 committed by Sol Fisher Romanoff
parent 745e4c7234
commit 126d801c00
Signed by: nbsp
GPG key ID: 9D3F2B64F2341B62

View file

@ -199,8 +199,8 @@ defmodule Pleroma.FollowingRelationship do
|> preload([:follower])
|> Repo.all()
|> Enum.map(fn following_relationship ->
Pleroma.Web.CommonAPI.unfollow(following_relationship.follower, origin)
Pleroma.Web.CommonAPI.follow(following_relationship.follower, target)
Pleroma.Web.CommonAPI.unfollow(following_relationship.follower, origin)
end)
|> case do
[] ->