Skip to:
Content

BuddyPress.org

Ticket #869: bp-xprofile-notifications.diff

File bp-xprofile-notifications.diff, 1.0 KB (added by plrk, 15 years ago)

Patch

  • Users/job/Documents/buddypress-trunk/bp-xprofile/bp-xprofile-notifications.php

     
    2424        if ( $bp->current_component == $bp->wire->slug && !bp_is_home() ) {
    2525                bp_core_add_notification( $poster_id, $user_id, 'xprofile', 'new_wire_post' );
    2626
    27                 if ( !get_usermeta( $bp->loggedin_user->id, 'notification_profile_wire_post' ) || 'yes' == get_usermeta( $bp->loggedin_user->id, 'notification_profile_wire_post' ) ) {
     27                if ( !get_usermeta( $user_id, 'notification_profile_wire_post' ) || 'yes' == get_usermeta( $user_id, 'notification_profile_wire_post' ) ) {
    2828                        $poster_name = bp_core_get_user_displayname( $poster_id );
    2929                        $wire_post = new BP_Wire_Post( $bp->profile->table_name_wire, $wire_post_id, true );
    3030                        $ud = get_userdata($user_id);