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

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

Committer: ailyin
LJSUP-6928 (We should take only public tweets/re-tweets (public account).): make the worker handle this correctly on dev servers, as well
U   trunk/bin/worker/twitter-digest
Modified: trunk/bin/worker/twitter-digest
===================================================================
--- trunk/bin/worker/twitter-digest	2010-09-23 05:41:21 UTC (rev 9537)
+++ trunk/bin/worker/twitter-digest	2010-09-23 05:59:58 UTC (rev 9538)
@@ -23,8 +23,13 @@
 
     my $res = LJ::TwitterDigest->post_digest($u);
 
-    warn "digest has been posted: $res->{url}\n"
-        if $LJ::IS_DEV_SERVER;
+    if ($LJ::IS_DEV_SERVER) {
+        if ($res) {
+            warn "digest has been posted: $res->{url}\n";
+        } else {
+            warn "digest has not been posted\n";
+        }
+    }
 
     LJ::TwitterDigest->set_next_post_time($u);
 

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