Skip to:
Content

BuddyPress.org

Ticket #7134: 7134.01.patch

File 7134.01.patch, 560 bytes (added by r-a-y, 8 years ago)
  • src/bp-blogs/bp-blogs-activity.php

     
    12811281
    12821282        // Check comment depth and disable if depth is too large.
    12831283        if ( isset( buddypress()->blogs->thread_depth[$comment->item_id] ) ){
    1284                 if ( $comment->mptt_left > buddypress()->blogs->thread_depth[$comment->item_id] ) {
     1284                if ( bp_activity_get_comment_depth() > buddypress()->blogs->thread_depth[$comment->item_id] ) {
    12851285                        $retval = false;
    12861286                }
    12871287        }