Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/04/2010 09:07:33 AM (17 years ago)
Author:
apeatling
Message:

Making sure the group membership check is only done when viewing a single group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r2247 r2248  
    204204
    205205                /* If we are viewing a group then filter the activity just for this group */
    206                 if ( $bp->groups->current_group )
     206                if ( $bp->groups->current_group ) {
    207207                        $query_string .= '&object=' . $bp->groups->id . '&primary_id=' . $bp->groups->current_group->id;
    208208
    209                 /* If we're viewing a non-private group and the user is a member, show the hidden activity for the group */
    210                 if ( 'public' != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )
    211                         $query_string .= '&show_hidden=1';
     209                        /* If we're viewing a non-private group and the user is a member, show the hidden activity for the group */
     210                        if ( 'public' != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )
     211                                $query_string .= '&show_hidden=1';
     212                }
    212213
    213214                /* Add the per_page param */
Note: See TracChangeset for help on using the changeset viewer.