Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r10434: LJSUP-8702 (expunged users cause twitter...

Committer: ailyin
LJSUP-8702 (expunged users cause twitter-digest to fail)
U   trunk/cgi-bin/LJ/Client/Twitter.pm
U   trunk/cgi-bin/LJ/UserManage.pm
Modified: trunk/cgi-bin/LJ/Client/Twitter.pm
===================================================================
--- trunk/cgi-bin/LJ/Client/Twitter.pm	2011-04-25 09:57:39 UTC (rev 10433)
+++ trunk/cgi-bin/LJ/Client/Twitter.pm	2011-04-26 03:15:21 UTC (rev 10434)
@@ -457,19 +457,10 @@
 sub get_userinfo {
     my ($class, %opts) = @_;
 
-    if (my $u = $opts{'user'}) {
-        $opts{'access_token'} = {
-            'public' => $u->prop('twitter_access_token'),
-            'secret' => $u->prop('twitter_access_token_secret'),
-        };
-    }
-
-    my $access_token = $opts{'access_token'};
-    die 'access token not provided' unless $access_token;
-
     my $userdata = $class->call(
-        'api_method' => 'account/verify_credentials',
-        'access_token' => $access_token,
+        'api_method'    => 'account/verify_credentials',
+        'access_token'  => $opts{'access_token'},
+        'user'          => $opts{'user'},
     );
 
     my $twu = LJ::Client::Twitter::User->from_hash($userdata);

Modified: trunk/cgi-bin/LJ/UserManage.pm
===================================================================
--- trunk/cgi-bin/LJ/UserManage.pm	2011-04-25 09:57:39 UTC (rev 10433)
+++ trunk/cgi-bin/LJ/UserManage.pm	2011-04-26 03:15:21 UTC (rev 10434)
@@ -205,6 +205,7 @@
     'smsusermap' => {},
     'supportnotify' => {},
     'syndicated' => {},
+    'twitter_digest_status' => {},
     'userinterests' => {},
 );
 

Tags: andy, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments