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

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

Committer: ailyin
LJSUP-8702 (expunged users cause twitter-digest to fail)
U   trunk/bin/worker/twitter-digest
Modified: trunk/bin/worker/twitter-digest
===================================================================
--- trunk/bin/worker/twitter-digest	2011-04-26 04:31:11 UTC (rev 10437)
+++ trunk/bin/worker/twitter-digest	2011-04-26 06:42:13 UTC (rev 10438)
@@ -27,6 +27,12 @@
 
     warn "Processing user $u->{user}" if $verbose;
 
+    unless ( $u->is_visible ) {
+        warn "not a visible user, delaying until tomorrow" if $verbose;
+        LJ::TwitterDigest->set_next_post_time($u);
+        return 1;
+    }
+
     my $res = eval { LJ::TwitterDigest->post_digest($u) };
     if ($@) {
         warn "failed to handle '" . $u->username . "' error: $@";

Tags: andy, ljcom
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