BuddyDev

Search

[Resolved] Comments in activity stream

  • Participant
    Level: Initiated
    Posts: 13
    Plamen Peev on #24684

    Hi,

    Is there a way to display blog post comments under “Everything” as separate entries in the Activity stream?
    Currently they only show under “Comments”.
    They were showing up as separate entries before under “Everything”. Not sure what happened.

    Thanks

    P

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #24720

    Hi P,
    Thank you for the question.

    Are you using anyplugin/code to exclude activity types? I don’t see any other reason for the same.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 13
    Plamen Peev on #24740

    ‘function buddydev_disable_activity_blog_comment_recording_conditionally( $enabled, $blog_id, $post_id, $user_id, $comment_id ) {

    // use $post_id to decide.
    // set $enabled= false; to stop recording comment.
    if ( ! in_category( ‘community’, $post_id ) ) {
    $enabled = false;
    }

    return $enabled;
    }

    add_filter( ‘bp_activity_post_pre_comment’, ‘buddydev_disable_activity_blog_comment_recording_conditionally’, 20, 5 );’

    That’s all I’m using. You put it together for me a while ago to be able to filter what’s coming in the feed.

    Thanks,

    Plamen

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #24793

    Hi Plamen,
    Thank you for the reply.

    The above code only restricts recording of the activity from blog posts if they are not posted in the community category.

    If your posts have ‘Community’ category, they should be recorded and visible. I am not sure what could be causing it.

    My suggestion will be try disabling plugins one by one and check if it works.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 13
    Plamen Peev on #24814

    Thanks, Brajesh. All the best.

The topic ‘ [Resolved] Comments in activity stream’ is closed to new replies.

This topic is: resolved