Hi, I have customized my activity post content (img1) with this code, and works great:
add_filter( 'bp_blogs_activity_new_post_content', 'record_post_activity_content', 1, 3 );
function record_post_activity_content($activity_content, $post, $post_permalink ){
if( $post->post_type == 'post' ) {
$activity_content = '<a href="'. get_permalink( $post->ID ).'" class="activity-content-title" >'.get_post_field('post_title', $post->ID).'</a>' . get_the_post_thumbnail( $post->ID, 'articulo-lateral', array( 'class' => 'articulo-lateral' )) . get_post_field('post_content', $post->ID);
}
return $activity_content;
}
But If I update the post, the activity shows only the post content, without my customization (img2)
Also if I set the post as “draft” and publish again, I get my activity customization working again (img1)
How I can resolve this? Is a bug?
—
Img1: http://i.imgur.com/5s9os2q.png
Img2: http://i.imgur.com/FlsKxz5.png
Best regards,
Gabriel