mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 17:43:33 +00:00
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:
parent
4a77436427
commit
a4f8c3084d
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue