Changeset 6127 for trunk/bp-activity/bp-activity-filters.php
- Timestamp:
- 06/21/2012 06:46:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-filters.php
r6095 r6127 150 150 151 151 // Only check specific types of activity updates 152 if ( ! in_array( $activity->type, bp_activity_get_moderated_activity_types() ) )152 if ( ! in_array( $activity->type, bp_activity_get_moderated_activity_types() ) ) 153 153 return; 154 154 155 // Unset the activity component so activity stream update fails156 if ( ! bp_core_check_for_blacklist( $activity->user_id, '', $activity->content ) )157 $activity->component = false;155 // Mark as spam 156 if ( ! bp_core_check_for_blacklist( $activity->user_id, '', $activity->content ) ) 157 bp_activity_mark_as_spam( $activity, 'by_blacklist' ); 158 158 } 159 159
Note: See TracChangeset
for help on using the changeset viewer.