[buddypress-trac] [BuddyPress Trac] #8415: Deleting a comment doesn't delete comment's descendants

buddypress-trac noreply at wordpress.org
Wed Dec 16 18:40:44 UTC 2020


#8415: Deleting a comment doesn't delete comment's descendants
---------------------------+------------------------------
 Reporter:  yesbutmaybeno  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Core           |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by yesbutmaybeno):

 Actually my idea was wrong, it ends up a simple fix though maybe a bit
 hacky

 I had to edit the buddypress.js file that ships with the legacy theme, on
 its delete_activity function, change what the ajax action will be:


 {{{
 var the_action = 'delete_activity';
 if ( li.hasClass('activity_comment') )
         the_action = 'delete_activity_comment';
 }}}


 Now it properly treats the "activity" as an activity comment. Probably
 should be added into the default JS file.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8415#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list