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
parent 4f44fd32ea
commit a677c621e8
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
1 changed files with 1 additions and 1 deletions

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
[] ->