diff --git src/bp-activity/bp-activity-functions.php src/bp-activity/bp-activity-functions.php
index 94b5de1..26dc9b8 100644
|
|
|
function bp_activity_new_comment( $args = '' ) {
|
| 1350 | 1350 | |
| 1351 | 1351 | $activity_id = $r['activity_id']; |
| 1352 | 1352 | |
| 1353 | | // Check to see if the parent activity is hidden, and if so, hide this comment publically. |
| | 1353 | // Get the parent activity |
| 1354 | 1354 | $activity = new BP_Activity_Activity( $activity_id ); |
| | 1355 | |
| | 1356 | // Bail if the parent activity does not exist |
| | 1357 | if ( empty( $activity->date_recorded ) ) { |
| | 1358 | return false; |
| | 1359 | } |
| | 1360 | |
| | 1361 | // Check to see if the parent activity is hidden, and if so, hide this comment publically. |
| 1355 | 1362 | $is_hidden = ( (int) $activity->hide_sitewide ) ? 1 : 0; |
| 1356 | 1363 | |
| 1357 | 1364 | // Insert the activity comment |
| … |
… |
function bp_activity_delete_comment( $activity_id, $comment_id ) {
|
| 1661 | 1668 | bp_activity_delete_children( $activity_id, $child->id ); |
| 1662 | 1669 | } |
| 1663 | 1670 | } |
| 1664 | | |
| | 1671 | |
| 1665 | 1672 | // Delete the comment itself |
| 1666 | 1673 | bp_activity_delete( array( |
| 1667 | 1674 | 'secondary_item_id' => $comment_id, |