Make Move activity federate properly
Ref: emit-move
This commit is contained in:
parent
1d8abf2511
commit
e41eee5ed1
2 changed files with 6 additions and 2 deletions
|
@ -413,7 +413,8 @@ def move(%User{} = origin, %User{} = target, local \\ true) 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,
|
||||
|
|
|
@ -1739,9 +1739,12 @@ test "create" 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,
|
||||
|
|
Loading…
Reference in a new issue