Skip to content

Commit f304033

Browse files
authored
Move: use $from for object in Move::externally (#1531)
* Move: use `$from` for object in `Move::externally` * Add changelog
1 parent b022733 commit f304033

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: fixed
3+
4+
Use the $from account for the object in Move activity for external Moves

includes/class-move.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function externally( $from, $to ) {
7878
$activity->set_type( 'Move' );
7979
$activity->set_actor( $user->get_id() );
8080
$activity->set_origin( $user->get_id() );
81-
$activity->set_object( $target_actor->get_id() );
81+
$activity->set_object( $user->get_id() );
8282
$activity->set_target( $target_actor->get_id() );
8383

8484
// Add to outbox.

0 commit comments

Comments
 (0)