X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Foauthstore.php;h=d617a7df7e6216f52d72d0beec8892487256f94b;hb=acaf07f6e8c873e0069e84dac74bac3c7da98a97;hp=87d8cf2137b197718d93b4d5803502e5c50f867f;hpb=b2664e1ae2e2cf66585cdd8696d88efdd053eb3b;p=quix0rs-gnu-social.git diff --git a/lib/oauthstore.php b/lib/oauthstore.php index 87d8cf2137..d617a7df7e 100644 --- a/lib/oauthstore.php +++ b/lib/oauthstore.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { - exit(1); -} +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once 'libomb/datastore.php'; -class LaconicaDataStore extends OMB_Datastore +class StatusNetOAuthDataStore extends OAuthDataStore { // We keep a record of who's contacted us @@ -158,7 +156,6 @@ class LaconicaDataStore extends OMB_Datastore return $this->new_access_token($consumer); } - /** * Revoke specified OAuth token * @@ -365,9 +362,7 @@ class LaconicaDataStore extends OMB_Datastore false, null, $omb_notice->getIdentifierURI()); - if (is_string($notice)) { - throw new Exception($notice); - } + common_broadcast_notice($notice, true); }