Skip to:
Content

BuddyPress.org

Changeset 10947


Ignore:
Timestamp:
07/20/2016 05:46:26 PM (3 years ago)
Author:
r-a-y
Message:

Blogs: Fix issue with calculating activity comment depth.

If blog comment sync is enabled and the "Enable threaded comments X levels
deep" option is checked under the dashboard's "Settings > Discussion" page,
the activity comment "Reply" link does not accurately display in the
activity stream.

Problem was using the wrong method to compare the comment depth, which is
rectified in this commit.

Fixes #7134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-activity.php

    r10854 r10947  
    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        }
Note: See TracChangeset for help on using the changeset viewer.