Make move_following worker follow then unfollow
Ref: emit-move
This commit is contained in:
parent
4f44fd32ea
commit
a677c621e8
|
@ -199,8 +199,8 @@ def move_following(origin, target) 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
|
||||
[] ->
|
||||
|
|
Loading…
Reference in New Issue