holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12329: LJSV-2326: Promo notifications are sendi...

Committer: akanashin
LJSV-2326: Promo notifications are sending to non-cyrillic users (community comments)
U   trunk/cgi-bin/LJ/Hooks/ESN.pm
Modified: trunk/cgi-bin/LJ/Hooks/ESN.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-07-20 17:25:33 UTC (rev 12328)
+++ trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-07-23 08:38:58 UTC (rev 12329)
@@ -94,11 +94,6 @@
 
     my $active_region = lc($u->prop('country'));
 
-    unless ($active_region) {
-        my $db = LJ::get_cluster_reader($u);
-        my ($ip) = $db->selectrow_array( "SELECT ip FROM userlog WHERE userid=? AND action='account_create' LIMIT 1", undef, $u->userid);
-        $active_region = LJ::GeoLocation->get_country_info_by_ip($ip);
-    }
     return unless $active_region;
 
     my $slot = LJ::Pay::PromotionSlot->find_slot(class => LJ::Pay::PromotionSlot::PROMO_NOTIFICATIONS(), type => LJ::Pay::PromotionSlot::PROMO_OBJECT_TYPE_ENTRY(), region => $active_region);

Tags: akanashin, holyandrew, 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