Skip to:
Content

BuddyPress.org

Ticket #8535: 8535.patch

File 8535.patch, 595 bytes (added by kishanjasani, 4 years ago)

Here is the patch for this ticket. I have remove check which was checking that page is group's single page or not. But we just need to check here is that the group component is active or not. Thanks

  • src/bp-activity/bp-activity-template.php

    diff --git a/src/bp-activity/bp-activity-template.php b/src/bp-activity/bp-activity-template.php
    index f59004e89..1ff7c63fd 100644
    a b function bp_has_activities( $args = '' ) { 
    213213                : false;
    214214
    215215        // Group filtering.
    216         if ( bp_is_group() ) {
     216        if ( bp_is_active( 'groups' ) ) {
    217217                $object      = $bp->groups->id;
    218218                $primary_id  = bp_get_current_group_id();
    219219                $show_hidden = (bool) ( groups_is_user_member( bp_loggedin_user_id(), $primary_id ) || bp_current_user_can( 'bp_moderate' ) );