No Flood Control – Buddypress 1.6.2
-
There is no flood control on the Buddypress 1.6.2 Activity page. I checked the function bp_core_check_for_flood in bp-core/bp-core-moderation.php and it’s not used in the activity files at all.
function bp_core_check_for_flood( $user_id = 0 ) {
// Option disabled. No flood checks.
if ( !$throttle_time = bp_get_option( ‘_bp_throttle_time’ ) )
return true;// Bail if no user ID passed
if ( empty( $user_id ) )
return false;$last_posted = get_user_meta( $user_id, ‘_bp_last_posted’, true );
if ( isset( $last_posted ) && ( time() < ( $last_posted + $throttle_time ) ) && !current_user_can( 'throttle' ) )
return false;return true;
}It looks for an option "_bp_throttle_time" which isn't set anywhere in the backend and it also needs a meta key named _bp_last_posted which isn't created in the database (so fetching it via get_user_meta won't work). Am I supposed to modify my core files so I can implement Flood Control?
- The topic ‘No Flood Control – Buddypress 1.6.2’ is closed to new replies.