Plugin Directory

Changeset 707007


Ignore:
Timestamp:
05/02/2013 03:39:05 PM (13 years ago)
Author:
Yuttadhammo
Message:

fixing favorites

Location:
buddypress-xml-rpc-receiver/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php

    r707005 r707007  
    885885                $include = implode( ',', (array)bp_activity_get_user_favorites( $bp->loggedin_user->id ) );
    886886                if(strlen($include) == 0)
    887                     $include = '-1';
     887                    $include = true;
    888888                break;
    889889            case 'friends':
     
    942942
    943943        if ( $include ) {
    944             $activities = bp_activity_get_specific( array( 'activity_ids' => explode( ',', $include ), 'max' => $max, 'per_page' => $max, 'page' => 1, 'sort' => 'DESC', 'display_comments' => 'threaded' ) );
     944            if(include === true) // nothing to include
     945                $activities = array();
     946            else
     947                $activities = bp_activity_get_specific( array( 'activity_ids' => explode( ',', $include ), 'max' => $max, 'per_page' => $max, 'page' => 1, 'sort' => 'DESC', 'display_comments' => 'threaded' ) );
    945948        } else {
    946949            $activities = bp_activity_get( array( 'display_comments' => 'threaded', 'max' => $max, 'per_page' => $max, 'page' => 1, 'sort' => 'DESC', 'search_terms' => $search_terms, 'filter' => $filter, 'show_hidden' => $show_hidden ) );
  • buddypress-xml-rpc-receiver/trunk/readme.txt

    r700436 r707007  
    44Requires at least: PHP 5.2, WordPress 3.4.0, BuddyPress 1.5.6
    55Tested up to: PHP 5.4.4, WordPress 3.5.1, BuddyPress 1.6.1
    6 Stable tag: 0.5.2
     6Stable tag: 0.5.3
    77License: GPLv3+
    88
     
    8383    sending the 'user_data' parameter makes it include a list with the user's notifications, etc.
    8484
     85    returns: array (confirmation, message)
     86
    8587* bp.getMemberInfo: get info for a given user id
    8688
    8789    params: array ($username, $password, $data['user_id','action','action_id','action_data'] )
    8890
    89     returns: array (user)
     91    returns: array (confirmation, message)
    9092
    9193    sending the 'action' parameter makes it perform a specified action on a user id ('action_id') (not yet implemented).
     
    9597    params: array ($username, $password, $data['user_id'] )
    9698
    97     returns: array ()
     99    returns: array (confirmation, message)
    98100
    99101* bp.updateExternalBlogPostStatus: send an activity stream update filed under blogs
     
    137139where <redirect> is one of the following:
    138140
     141login
     142register
    139143settings (user settings)
    140 remote_settings (remote settings for activating this plugin)
    141144notifications
    142145messages
     
    154157== Changelog ==
    155158
     159= 0.5.3 =
     160
     161* added friend info to users
     162* standardized output (may break old clients)
     163* bug fixes
     164
    156165= 0.5.2 =
    157166
Note: See TracChangeset for help on using the changeset viewer.