madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22557: LJSUP-13181: there are two notification ...

Committer: sbelyaev
LJSUP-13181: there are two notification of birthday for one user
U   trunk/bin/worker/birthday-notify
Modified: trunk/bin/worker/birthday-notify
===================================================================
--- trunk/bin/worker/birthday-notify	2012-08-03 06:59:31 UTC (rev 22556)
+++ trunk/bin/worker/birthday-notify	2012-08-03 07:41:04 UTC (rev 22557)
@@ -136,11 +136,7 @@
         debug("Firing off notification for " . $u->user);
         LJ::Event::Birthday->new($u)->fire;
 
-        my $birthday_time = $bdays->{$u->id} - time() - 86400;
-        if ($birthday_time < 86400) {
-            $birthday_time = 1;
-        }
-        LJ::Event::Birthday->new($u, $birthday_time)->fire;
+        LJ::Event::Birthday->new($u, $advance_notify)->fire;
         $ct++;
     }
 

Tags: livejournal, madeon, sbelyaev
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