Skip to:
Content

BuddyPress.org

Changeset 1910


Ignore:
Timestamp:
09/21/2009 09:37:22 PM (17 years ago)
Author:
apeatling
Message:

Fixes #1048

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-wire/bp-wire-templatetags.php

    r1905 r1910  
    2323                if ( $bp->current_component == $bp->wire->slug ) {
    2424                        $this->table_name = $bp->profile->table_name_wire;
    25                        
    26                         // If the user is viewing their own wire, delete the notifications.
    27                         if ( 'all-posts' == $bp->current_action && bp_is_home() )
    28                                 bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'xprofile', 'new_wire_post' );
    29                        
    3025                } else
    3126                        $this->table_name = $bp->{$bp->active_components[$component_slug]}->table_name_wire;
  • trunk/bp-xprofile.php

    r1907 r1910  
    536536                /* Record the notification for the reciever if it's not on their own wire */
    537537                if ( !bp_is_home() )
    538                         bp_core_add_notification( $bp->loggedin_user->id, $bp->displayed_user->id, 'profile', 'new_wire_post' );       
     538                        bp_core_add_notification( $bp->loggedin_user->id, $bp->displayed_user->id, $bp->profile->id, 'new_wire_post' );
    539539               
    540540                /* Record this on the poster's activity screen */
     
    10961096        global $bp;
    10971097       
    1098         bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'profile', 'new_wire_post' );
     1098        bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->profile->id, 'new_wire_post' );
    10991099}
    11001100add_action( 'bp_wire_screen_latest', 'xprofile_remove_screen_notifications' );
Note: See TracChangeset for help on using the changeset viewer.