Skip to:
Content

BuddyPress.org

Changeset 2507


Ignore:
Timestamp:
02/01/2010 09:24:14 AM (14 years ago)
Author:
apeatling
Message:

Don't send a notification if the parent commenter ID is the same as the original activity commenter ID, otherwise they will get two similar notifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-notifications.php

    r2501 r2507  
    8989    $parent_comment = new BP_Activity_Activity( $parent_id );
    9090
    91     if ( $parent_comment->user_id != $commenter_id && 'no' != get_usermeta( $parent_comment->user_id, 'notification_activity_new_reply' ) ) {
     91    if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != get_usermeta( $parent_comment->user_id, 'notification_activity_new_reply' ) ) {
    9292        $poster_name = bp_core_get_user_displayname( $commenter_id );
    9393        $thread_link = bp_activity_get_permalink( $activity_id );
Note: See TracChangeset for help on using the changeset viewer.