OK. In “pet-manager.php”, bottom of the page, just add do_action() when calling bp_blog_xxx functions. Here is the fix :
do_action( ‘bp_blogs_record_activity’, array(
‘user_id’ => (int)$post->post_author,
‘action’ => apply_filters( ‘bp_blogs_activity_new_post_action’, $activity_action, $post, $post_permalink ),
‘content’ => apply_filters( ‘bp_blogs_activity_new_post_content’, $activity_action.$thumb, $post, $post_permalink ),
‘primary_link’ => apply_filters( ‘bp_blogs_activity_new_post_primary_link’, $post_permalink, $post_id ),
‘type’ => ‘new_blog_post’,
‘item_id’ => $blog_id,
‘secondary_item_id’ => $post_id,
‘recorded_time’ => $post->post_date_gmt
));
}
} else
do_action( ‘bp_blogs_remove_post’, $post_id, $blog_id );
do_action( ‘bp_blogs_update_blogmeta’, $blog_id, ‘last_activity’, bp_core_current_time() );
do_action( ‘bp_blogs_new_blog_post’, $post_id, $post, $user_id );
}