Skip to:
Content

BuddyPress.org

Changeset 5327


Ignore:
Timestamp:
11/13/2011 09:04:14 PM (13 years ago)
Author:
djpaul
Message:

Use the user name in Activity Akismet history, rather than their display name, to avoid possible confusion if/when users switch their names. See #3660

File:
1 edited

Legend:

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

    r5325 r5327  
    343343            return;
    344344
    345         $this->update_activity_history( $activity->id, sprintf( __( '%s reported this activity as spam', 'buddypress' ), bp_get_loggedin_user_fullname() ), 'report-spam' );
     345        $this->update_activity_history( $activity->id, sprintf( __( '%s reported this activity as spam', 'buddypress' ), bp_get_loggedin_user_username() ), 'report-spam' );
    346346        bp_activity_update_meta( $activity->id, '_bp_akismet_user_result', 'true' );
    347         bp_activity_update_meta( $activity->id, '_bp_akismet_user', bp_get_loggedin_user_fullname() );
     347        bp_activity_update_meta( $activity->id, '_bp_akismet_user', bp_get_loggedin_user_username() );
    348348    }
    349349
     
    359359            return;
    360360
    361         $this->update_activity_history( $activity->id, sprintf( __( '%s reported this activity as not spam', 'buddypress' ), bp_get_loggedin_user_fullname() ), 'report-ham' );
     361        $this->update_activity_history( $activity->id, sprintf( __( '%s reported this activity as not spam', 'buddypress' ), bp_get_loggedin_user_username() ), 'report-ham' );
    362362        bp_activity_update_meta( $activity->id, '_bp_akismet_user_result', 'false' );
    363         bp_activity_update_meta( $activity->id, '_bp_akismet_user', bp_get_loggedin_user_fullname() );
     363        bp_activity_update_meta( $activity->id, '_bp_akismet_user', bp_get_loggedin_user_username() );
    364364    }
    365365
Note: See TracChangeset for help on using the changeset viewer.