logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: e41eee5ed1c4e7001a28dababe046e28357d2ffd
parent 1d8abf2511317927794c0c9f5f5c2a6efdb66fed
Author: Tusooa Zhu <tusooa@kazv.moe>
Date:   Sun, 12 Sep 2021 16:45:17 -0400

Make Move activity federate properly

Ref: emit-move

Diffstat:

Mlib/pleroma/web/activity_pub/activity_pub.ex3++-
Mtest/pleroma/web/activity_pub/activity_pub_test.exs5++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -413,7 +413,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do "type" => "Move", "actor" => origin.ap_id, "object" => origin.ap_id, - "target" => target.ap_id + "target" => target.ap_id, + "to" => [origin.follower_address] } with true <- origin.ap_id in target.also_known_as, diff --git a/test/pleroma/web/activity_pub/activity_pub_test.exs b/test/pleroma/web/activity_pub/activity_pub_test.exs @@ -1739,9 +1739,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do "target" => ^new_ap_id, "type" => "Move" }, - local: true + local: true, + recipients: recipients } = activity + assert old_user.follower_address in recipients + params = %{ "op" => "move_following", "origin_id" => old_user.id,