case 'json':
$args['id'] = $this->auth_user->id;
$action_obj = new ApiUserShowAction();
- $action_obj->prepare($args);
- $action_obj->handle($args);
+ if ($action_obj->prepare($args)) {
+ $action_obj->handle($args);
+ }
break;
default:
header('Content-Type: text/html; charset=utf-8');
* @link http://status.net/
*/
-class ApiFriendshipsExistsAction extends TwitterApiAction
+class ApiFriendshipsExistsAction extends ApiAction
{
var $user_a = null;
var $user_b = null;
* @link http://status.net/
*/
-class ApiGroupListAllAction extends TwitterApiAction
+class ApiGroupListAllAction extends ApiAction
{
var $page = null;
var $count = null;
* @link http://status.net/
*/
-class ApiGroupMembershipAction extends TwitterApiAction
+class ApiGroupMembershipAction extends ApiAction
{
var $page = null;
var $count = null;
* @link http://status.net/
*/
-class ApiGroupShowAction extends TwitterApiAction
+class ApiGroupShowAction extends ApiAction
{
var $group = null;
* @link http://status.net/
*/
-class ApiHelpTestAction extends TwitterApiAction
+class ApiHelpTestAction extends ApiAction
{
/**
* @link http://status.net/
*/
-class ApiStatusnetConfigAction extends TwitterApiAction
+class ApiStatusnetConfigAction extends ApiAction
{
var $keys = array(
'site' => array('name', 'server', 'theme', 'path', 'fancy', 'language',
* @link http://status.net/
*/
-class ApiStatusnetVersionAction extends TwitterApiAction
+class ApiStatusnetVersionAction extends ApiAction
{
/**
* Take arguments for running
* @link http://status.net/
*/
-class ApiUserShowAction extends TwitterApiAction
+class ApiUserShowAction extends ApiAction
{
var $user = null;
// FIXME: this code should be abstracted to a neutral third
// party, like Notice::asJson(). I'm not sure of the ethics
// of refactoring from within a plugin, so I'm just abusing
- // the TwitterApiAction method. Don't do this unless you're me!
+ // the ApiAction method. Don't do this unless you're me!
require_once(INSTALLDIR.'/lib/api.php');
- $act = new TwitterApiAction('/dev/null');
+ $act = new ApiAction('/dev/null');
$arr = $act->twitter_status_array($notice, true);
$arr['url'] = $notice->bestUrl();