new blog post in site wide activity stream but not in personal activity stream
-
The blog-post(wp-post) was not appearing in the activity stream out of the box in my installation of buddypress. So i added a piece of code in bp-acitivity-actions.php:
function buddypress_edit_blog_post($post_id) { global $bp, $user_id; $post = get_post($post_id); $title = $post->post_title; $user_fullname = bp_core_get_user_displayname($user_id); bp_activity_add(array( 'action' => $user_fullname.' updated ' . $title . ':', 'component' => 'blog_post', 'type' => 'update_post', 'primary_link' => get_permalink($post_id), 'user_id' => $user_id, 'content' => $post->post_content )); } add_action('edit_post', 'buddypress_edit_blog_post');
and now the site wide activity is displaying user’s new blog-post, however, I still can’t see it in personal activity stream.
I don’t understand, why does this happen?
And I want to know which piece of code is managing the personal activity stream, I would like to know how it works.Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘new blog post in site wide activity stream but not in personal activity stream’ is closed to new replies.