Skip to:
Content

BuddyPress.org

Ticket #2544: wut.diff

File wut.diff, 763 bytes (added by DJPaul, 16 years ago)
  • bp-activity/bp-activity-classes.php

     
    113113
    114114                /* Hide Hidden Items? */
    115115                if ( !$show_hidden )
    116                         $where_conditions['hidden_sql'] = "a.hide_sitewide = 0";
     116                        $visibility = '0';
     117                else
     118                        $visibility = '0, 1';
    117119
     120                $where_conditions['hidden_sql'] = "a.hide_sitewide IN ($visibility)";
     121
    118122                /* Alter the query based on whether we want to show activity item comments in the stream like normal comments or threaded below the activity */
    119123                if ( !$display_comments || 'threaded' == $display_comments ) {
    120124                        $where_conditions[] = "a.type != 'activity_comment'";