Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2010 12:50:00 PM (17 years ago)
Author:
apeatling
Message:

Make sure activity comments are separating their action an content and also being hidden publicly if on a private activity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r2616 r2666  
    191191                        $display_comments = 'stream';
    192192
     193                $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;
     194
    193195                if ( $user_id = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->id : $bp->loggedin_user->id ) {
    194196                        switch ( $scope ) {
    … …  
    209211                                                $object = $bp->groups->id;
    210212                                                $primary_id = implode( ',', (array)$groups['groups'] );
    211                                                 $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;
     213
    212214                                                $user_id = false;
    213215                                        }
    … …  
    219221
    220222                                        $include = implode( ',', (array)$favs );
    221                                         $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;
    222223                                        break;
    223224                                case 'mentions':
    … …  
    225226                                        $user_login = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login;
    226227                                        $search_terms = '@' . bp_core_get_username( $user_id, $user_nicename, $user_login );
    227                                         $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;
    228228                                        $display_comments = 'stream';
    229229                                        $user_id = false;
    … …  
    570570                                if ( !$comment->user_fullname )
    571571                                        $comment->user_fullname = $comment->display_name;
     572
     573                                var_dump($comment->content);
    572574
    573575                                $content .= '<li id="acomment-' . $comment->id . '">';
Note: See TracChangeset for help on using the changeset viewer.