Changeset 5595 for trunk/bp-activity/bp-activity-notifications.php
- Timestamp:
- 12/24/2011 03:37:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r5296 r5595 41 41 function bp_activity_at_message_notification( $activity_id, $receiver_user_id ) { 42 42 global $bp; 43 44 // Don't leave multiple notifications for the same activity item 45 $notifications = BP_Core_Notification::get_all_for_user( $receiver_user_id, 'all' ); 46 47 foreach( $notifications as $notification ) { 48 if ( $activity_id == $notification->item_id ) { 49 return; 50 } 51 } 43 52 44 53 $activity = new BP_Activity_Activity( $activity_id );
Note: See TracChangeset
for help on using the changeset viewer.