Skip to:
Content

BuddyPress.org

Ticket #5447: 5447.diff

File 5447.diff, 754 bytes (added by imath, 11 years ago)
  • bp-templates/bp-legacy/buddypress-functions.php

    diff --git bp-templates/bp-legacy/buddypress-functions.php bp-templates/bp-legacy/buddypress-functions.php
    index d8963f5..b01e643 100644
    function bp_legacy_theme_post_update() { 
    684684        if ( empty( $activity_id ) )
    685685                exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    686686
    687         $last_id = isset( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 0;
     687        $last_id = isset( $_POST['offset'] ) ? absint( $_POST['offset'] ) + 1 : 0;
    688688        if ( $last_id ) {
    689689                $activity_args = array( 'offset' => $last_id );
    690690                $bp->activity->new_update_id = $activity_id;