Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/11/2010 01:05:11 PM (16 years ago)
Author:
apeatling
Message:

Fixing RSS links on activity tabs.

File:
1 edited

Legend:

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

    r2287 r2291  
    173173                $type = 'all';
    174174
     175            $feed_url = site_url( BP_ACTIVITY_SLUG . '/feed/' );
     176
    175177            switch ( $type ) {
    176178                case 'friends':
    177179                    $friend_ids = implode( ',', friends_get_friend_user_ids( $bp->loggedin_user->id ) );
    178180                    $query_string = 'user_id=' . $friend_ids;
     181                    $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/my-friends/feed/';
    179182                    break;
    180183                case 'groups':
     
    182185                    $group_ids = implode( ',', $groups['groups'] );
    183186                    $query_string = 'object=groups&primary_id=' . $group_ids . '&show_hidden=1';
     187                    $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/my-groups/feed/';
    184188                    break;
    185189                case 'favorites':
     
    191195                    $favorite_ids = implode( ',', (array)$favs );
    192196                    $query_string = 'include=' . $favorite_ids;
     197                    $feed_url = $bp->loggedin_user->domain  . BP_ACTIVITY_SLUG . '/my-favorites/feed/';
    193198                    break;
    194199                case 'atme':
    195200                    $query_string = 'search_terms=@' . bp_core_get_username( $bp->loggedin_user->id, $bp->loggedin_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login );
     201                    $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG . '/mentions/feed/';
    196202
    197203                    /* Reset the number of new @ mentions for the user */
     
    234240    $bp->ajax_querystring = $query_string;
    235241    $result['query_string'] = $bp->ajax_querystring;
     242    $result['feed_url'] = $feed_url;
    236243
    237244    /* Buffer the loop in the template to a var for JS to spit out. */
Note: See TracChangeset for help on using the changeset viewer.