diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
index 52f074202..fef750a96 100644
|
|
function bp_activity_has_content() { |
1459 | 1459 | $generated_content = new stdClass(); |
1460 | 1460 | $activity = $activities_template->activity; |
1461 | 1461 | $user_id = $activity->user_id; |
| 1462 | $personal_types = array( 'new_avatar', 'new_member', 'updated_profile' ); |
| 1463 | |
| 1464 | // Do not use generated-content activities when displaying a personal activity stream. |
| 1465 | if ( (int) $user_id === (int) bp_displayed_user_id() && in_array( $activity_type, $personal_types, true ) ) { |
| 1466 | return false; |
| 1467 | } |
1462 | 1468 | |
1463 | 1469 | // Set generated content properties. |
1464 | 1470 | if ( 'new_avatar' === $activity_type ) { |
… |
… |
function bp_activity_has_content() { |
1546 | 1552 | } |
1547 | 1553 | |
1548 | 1554 | if ( 'created_group' === $activity_type || 'joined_group' === $activity_type ) { |
1549 | | $group = bp_get_group( $activity->item_id ); |
| 1555 | $group = bp_get_group( $activity->item_id ); |
| 1556 | $current_group = groups_get_current_group(); |
| 1557 | |
| 1558 | // Do not use generated-content activities when displaying a group activity stream. |
| 1559 | if ( (int) $group->id === (int) $current_group->id ) { |
| 1560 | return false; |
| 1561 | } |
1550 | 1562 | |
1551 | 1563 | if ( isset( $bp->avatar->show_avatars ) && $bp->avatar->show_avatars && ! bp_disable_group_avatar_uploads() ) { |
1552 | 1564 | $generated_content->group_profile_photo = array( |