Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/24/2021 01:54:39 AM (2 years ago)
Author:
imath
Message:

Make sure deleting an activity comment also deletes its children

This commit also takes care of redirecting the user to the activity single view when clicking on the comment button and there is no comment form available for the corresponding activity. This case can happen on a single member's activity stream when the main activity is an activity comment.

Props yesbutmaybeno

Fixes #8415

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/comment.php

    r12755 r13114  
    77 *
    88 * @since 3.0.0
    9  * @version 7.0.0
     9 * @version 10.0.0
    1010 */
    1111
    1212bp_nouveau_activity_hook( 'before', 'comment' ); ?>
    1313
    14 <li id="acomment-<?php bp_activity_comment_id(); ?>" class="comment-item" data-bp-activity-comment-id="<?php bp_activity_comment_id(); ?>">
     14<li id="acomment-<?php bp_activity_comment_id(); ?>" class="comment-item" <?php bp_nouveau_activity_data_attribute_id(); ?>>
    1515    <div class="acomment-avatar item-avatar">
    1616        <a href="<?php bp_activity_comment_user_link(); ?>">
Note: See TracChangeset for help on using the changeset viewer.