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

[ljcom] r9532: LJSUP-6928 (We should take only public t...

Committer: ailyin
LJSUP-6928 (We should take only public tweets/re-tweets (public account).)
U   trunk/cgi-bin/LJ/TwitterDigest.pm
Modified: trunk/cgi-bin/LJ/TwitterDigest.pm
===================================================================
--- trunk/cgi-bin/LJ/TwitterDigest.pm	2010-09-22 09:16:51 UTC (rev 9531)
+++ trunk/cgi-bin/LJ/TwitterDigest.pm	2010-09-22 09:30:15 UTC (rev 9532)
@@ -211,6 +211,9 @@
 sub post_digest {
     my ($class, $u) = @_;
 
+    my $twu = LJ::Client::Twitter->get_userinfo( 'user' => $u );
+    return if $twu->protected;
+
     if (my $u_system = LJ::load_user('system')) {
         unless ($u_system->rate_log('twitter_digest', 1)) {
             # wait a little bit so as to not hit the limit repeatedly,

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