]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
prepare the action obj for API
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 3 Dec 2008 21:03:58 +0000 (16:03 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 3 Dec 2008 21:03:58 +0000 (16:03 -0500)
darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz

actions/api.php

index ff46e62e761af5400ddce63ee1b5c39ea83d77be..ccebcd89e5cdca32fda64973964bfe73f2166090 100644 (file)
@@ -92,6 +92,10 @@ class ApiAction extends Action {
                        $action_class = ucfirst($action)."Action";
                        $action_obj = new $action_class();
 
+            if (!$action_obj->prepare($this->args)) {
+                return;
+            }
+
                        if (method_exists($action_obj, $this->api_method)) {
                                $apidata = array(       'content-type' => $this->content_type,
                                                                        'api_method' => $this->api_method,