Changeset 2500
- Timestamp:
- 01/31/2010 02:52:24 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-notifications.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r2480 r2500 17 17 18 18 // Now email the user with the contents of the message (if they have enabled email notifications) 19 if ( !get_usermeta( $user_id, 'notification_activity_new_mention' ) || 'yes' == get_usermeta( $user_id, 'notification_activity_new_mention' ) ) {19 if ( 'no' != get_usermeta( $user_id, 'notification_activity_new_mention' ) ) { 20 20 $poster_name = bp_core_get_user_displayname( $poster_user_id ); 21 21 … … 47 47 add_action( 'bp_activity_posted_update', 'bp_activity_at_message_notification', 10, 3 ); 48 48 49 function bp_activity_new_comment_notification( $comment_id, $ params ) {49 function bp_activity_new_comment_notification( $comment_id, $commenter_id, $params ) { 50 50 global $bp; 51 51 52 52 extract( $params ); 53 53 54 $original_activity = new BP_Activity_Activity( $activity_id ); 54 55 55 56 /* Don't email comments on a member's own activity */ 56 if ( $original_activity->user_id == $ user_id )57 if ( $original_activity->user_id == $commenter_id ) 57 58 return false; 58 59 59 if ( !get_usermeta( $user_id, 'notification_activity_new_reply' ) || 'yes' == get_usermeta( $user_id, 'notification_activity_new_reply' ) ) {60 $poster_name = bp_core_get_user_displayname( $ user_id );60 if ( 'no' != get_usermeta( $original_activity->user_id, 'notification_activity_new_reply' ) ) { 61 $poster_name = bp_core_get_user_displayname( $commenter_id ); 61 62 $thread_link = bp_activity_get_permalink( $activity_id ); 62 63 $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . 'settings/notifications/';
Note: See TracChangeset
for help on using the changeset viewer.