Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edited Forum Posts Repeating in Stream


  • Julia_B
    Participant

    @julia_b

    Since the last BuddyPress update, each time someone edits something they’ve posted in the BBPress forums on my site the forum post re-appears on the activity stream.

    This means that if someone edits a post several times their post appears multiple times in the feed.

    Hope someone can help. Thanks 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

  • Julia_B
    Participant

    @julia_b

    @danbp I think you very kindly helped me out with this same issue when it happened a while ago. Do you know how I can fix it?

    Hope you’re well 🙂


    danbp
    Moderator

    @danbp

    Hi Julia,

    it’s a bbPress bug, patched a while ago, but still in. Maybe a day it will be repaired definetly.

    For the moment, you can repair yourself. Open activity.php in wp-content/plugins/bbpress/includes/extend/buddypress/

    Replace following code block at line 277/279:

    $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
    if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
    return null;

    by

    $existing = new BP_Activity_Activity( $activity_id );
    if ( empty( $existing->component ) ) {
    return null;
    }

    Save and reload to to your site by FTP and you’re done.


    Julia_B
    Participant

    @julia_b

    @danbp Worked a charm. You rock! 🙂


    danbp
    Moderator

    @danbp

    You’re welcome. But it’s not me who rocks, but the patch author @shanebp !

    FYI The issue is resolved for what will be bbPress 2.6.


    Julia_B
    Participant

    @julia_b

    Just had to use this fix again after the latest bbpress update so thanks again @danbp and @shanebp!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar