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])
|
|> preload([:follower])
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|> Enum.map(fn following_relationship ->
|
|> Enum.map(fn following_relationship ->
|
||||||
Pleroma.Web.CommonAPI.unfollow(following_relationship.follower, origin)
|
|
||||||
Pleroma.Web.CommonAPI.follow(following_relationship.follower, target)
|
Pleroma.Web.CommonAPI.follow(following_relationship.follower, target)
|
||||||
|
Pleroma.Web.CommonAPI.unfollow(following_relationship.follower, origin)
|
||||||
end)
|
end)
|
||||||
|> case do
|
|> case do
|
||||||
[] ->
|
[] ->
|
||||||
|
|
Loading…
Reference in New Issue