X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftwitterauthorization.php;h=630ac426fd02248251472a0e1117a0115f102a7a;hb=4855cb58daf374404bec9489769cc57431e347f4;hp=b04f35327892416ab006dae7a30fb1d0cd8531f6;hpb=27548c690350bdf0376d846a5e8e86477359297d;p=quix0rs-gnu-social.git diff --git a/actions/twitterauthorization.php b/actions/twitterauthorization.php index b04f353278..630ac426fd 100644 --- a/actions/twitterauthorization.php +++ b/actions/twitterauthorization.php @@ -1,6 +1,6 @@ . * - * @category Twitter - * @package Laconica - * @author Zach Copely - * @copyright 2009 Control Yourself, Inc. + * @category TwitterauthorizationAction + * @package StatusNet + * @author Zach Copely + * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -/** - * Class for doing OAuth authentication against Twitter - * - * Peforms the OAuth "dance" between Laconica and Twitter -- requests a token, - * authorizes it, and exchanges it for an access token. It also creates a link - * (Foreign_link) between the Laconica user and Twitter user and stores the - * access token and secret in the link. - * - * @category Twitter - * @package Laconica - * @author Zach Copley - * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ - * - */ class TwitterauthorizationAction extends Action { - /** - * Initialize class members. Looks for 'oauth_token' parameter. - * - * @param array $args misc. arguments - * - * @return boolean true - */ + function prepare($args) { parent::prepare($args);