Skip to content

Commit 8d86fd2

Browse files
committed
Set federated flag properly
1 parent e5e1181 commit 8d86fd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,8 +1598,6 @@ function add_to_outbox( $data, $activity_type = 'Create', $user_id = 0, $content
15981598
}
15991599
}
16001600

1601-
set_wp_object_state( $data, 'federate' );
1602-
16031601
$outbox_activity_id = Outbox::add( $activity_object, $activity_type, $user_id, $content_visibility );
16041602

16051603
if ( ! $outbox_activity_id ) {
@@ -1616,6 +1614,8 @@ function add_to_outbox( $data, $activity_type = 'Create', $user_id = 0, $content
16161614
*/
16171615
\do_action( 'post_activitypub_add_to_outbox', $outbox_activity_id, $activity_object, $user_id, $content_visibility );
16181616

1617+
set_wp_object_state( $data, 'federated' );
1618+
16191619
return $outbox_activity_id;
16201620
}
16211621

0 commit comments

Comments
 (0)