Skip to content

Commit a4f8c30

Browse files
committed
fix comment federation
fix #671 @janboddez comments from a blog owner, that are direct replies to the post should now be federated properly. can you verify that?
1 parent 4a77436 commit a4f8c30

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

includes/class-scheduler.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,8 @@ public static function schedule_comment_activity( $new_status, $old_status, $com
197197
return;
198198
}
199199

200-
// check if activity type is "Create" and if comment should be federated or not
201-
if ( 'Create' === $type && ! should_comment_be_federated( $comment ) ) {
202-
return;
203-
}
204-
205-
// check if comment was already sent, otherwise there is no need to
206-
// send an update or delete activity
207-
if ( ! was_comment_sent( $comment ) ) {
200+
// check if comment should be federated or not
201+
if ( ! should_comment_be_federated( $comment ) ) {
208202
return;
209203
}
210204

0 commit comments

Comments
 (0)