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?
This commit is contained in:
Matthias Pfefferle 2024-02-06 10:14:42 +01:00
parent 4a77436427
commit a4f8c3084d

View file

@ -197,14 +197,8 @@ class Scheduler {
return;
}
// check if activity type is "Create" and if comment should be federated or not
if ( 'Create' === $type && ! should_comment_be_federated( $comment ) ) {
return;
}
// check if comment was already sent, otherwise there is no need to
// send an update or delete activity
if ( ! was_comment_sent( $comment ) ) {
// check if comment should be federated or not
if ( ! should_comment_be_federated( $comment ) ) {
return;
}