Changeset 1910
- Timestamp:
- 09/21/2009 09:37:22 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-wire/bp-wire-templatetags.php
r1905 r1910 23 23 if ( $bp->current_component == $bp->wire->slug ) { 24 24 $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 30 25 } else 31 26 $this->table_name = $bp->{$bp->active_components[$component_slug]}->table_name_wire; -
trunk/bp-xprofile.php
r1907 r1910 536 536 /* Record the notification for the reciever if it's not on their own wire */ 537 537 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' ); 539 539 540 540 /* Record this on the poster's activity screen */ … … 1096 1096 global $bp; 1097 1097 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' ); 1099 1099 } 1100 1100 add_action( 'bp_wire_screen_latest', 'xprofile_remove_screen_notifications' );
Note: See TracChangeset
for help on using the changeset viewer.