From fc01e6beb28b8f47f8fdda16f26bb4569b5ccd2b Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 19 Oct 2018 06:49:18 -0400 Subject: [PATCH] Only federate posts --- includes/client/posts.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/client/posts.php b/includes/client/posts.php index fe02a9f..92b4d1a 100644 --- a/includes/client/posts.php +++ b/includes/client/posts.php @@ -39,6 +39,10 @@ function handle_post_status_change( $new_status, $old_status, $post ) { Return an object of type Article */ function post_to_object( $post ) { + $supported_post_types = array( 'post' ); + if ( ! in_array( $post->post_type, $supported_post_types ) ) { + return; + } setup_postdata( $post ); $permalink = get_permalink( $post ); $summary = null;