Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2011 09:47:50 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Allow individual activity stream comments and forum replies to appear in favorites listings

File:
1 edited

Legend:

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

    r3984 r3985  
    9494        // Fetch specific activity items based on ID's
    9595        if ( !empty( $include ) )
    96             $this->activities = bp_activity_get_specific( array( 'activity_ids' => explode( ',', $include ), 'max' => $max, 'page' => $this->pag_page, 'per_page' => $this->pag_num, 'sort' => $sort, 'display_comments' => $display_comments ) );
     96            $this->activities = bp_activity_get_specific( array( 'activity_ids' => explode( ',', $include ), 'max' => $max, 'page' => $this->pag_page, 'per_page' => $this->pag_num, 'sort' => $sort, 'display_comments' => $display_comments, 'show_hidden' => $show_hidden ) );
    9797        // Fetch all activity items
    9898        else
     
    317317                        return false;
    318318
    319                     $include = implode( ',', (array)$favs );
     319                    $include          = implode( ',', (array)$favs );
     320                    $show_hidden      = true;
     321                    $display_comments = true;
    320322                    break;
    321323                case 'mentions':
    322                     $user_nicename = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->userdata->user_nicename : $bp->loggedin_user->userdata->user_nicename;
    323                     $user_login = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login;
    324                     $search_terms = '@' . bp_core_get_username( $user_id, $user_nicename, $user_login ) . '<'; // Start search at @ symbol and stop search at closing tag delimiter.
     324                    $user_nicename    = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->userdata->user_nicename : $bp->loggedin_user->userdata->user_nicename;
     325                    $user_login       = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login;
     326                    $search_terms     = '@' . bp_core_get_username( $user_id, $user_nicename, $user_login ) . '<'; // Start search at @ symbol and stop search at closing tag delimiter.
    325327                    $display_comments = 'stream';
    326328                    $user_id = 0;
Note: See TracChangeset for help on using the changeset viewer.