Skip to:
Content

BuddyPress.org

Ticket #4776: 4776.patch

File 4776.patch, 1.0 KB (added by cklosows, 11 years ago)

Initial idea for feedback

  • bp-activity/bp-activity-notifications.php

     
    5757        bp_core_add_notification( $activity_id, $receiver_user_id, 'activity', 'new_at_mention', $activity->user_id );
    5858
    5959        // Now email the user with the contents of the message (if they have enabled email notifications)
    60         if ( 'no' != bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) {
     60        $user_setting_pre_filter = bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true );
     61
     62        $user_notification_preference = apply_filters( 'bp_activity_at_message_notification_preference', $user_setting_pre_filter, $activity_id, $receiver_user_id, $activity->user_id);
     63
     64        if ( 'no' != $user_preference ) {
    6165                $poster_name = bp_core_get_user_displayname( $activity->user_id );
    6266
    6367                $message_link  = bp_activity_get_permalink( $activity_id );