Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2013 08:31:48 PM (13 years ago)
Author:
r-a-y
Message:

Remove activity comment count check in activity entry template.

Due to changes in r6410 to expand how activity comments are fetched, a
comment count now existed for nested activity comments.

Because the comment count now exists for nested activity comments, this had
the unintended consequence of showing activity comments on singular
activity comment entries. Since the current javascript / AJAX code is
unable to determine the parent activity ID correctly on a singular
activity comment item, this would result in the "View Conversation" link
being incorrect for replies that were made to these items.

This commit resolves this issue by removing the activity comment count
check, which will not output the activity comment form for singular
activity comment entries.

Fixes #5172.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/activity/entry.php

    r6522 r7482  
    8888    <?php do_action( 'bp_before_activity_entry_comments' ); ?>
    8989
    90     <?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?>
     90    <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
    9191
    9292        <div class="activity-comments">
Note: See TracChangeset for help on using the changeset viewer.