holyandrew� (holyandrew) wrote in changelog,
holyandrew�
holyandrew
changelog

[ljcom] r12331: 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-23 10:12:22 UTC (rev 12330)
+++ trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-07-23 11:09:57 UTC (rev 12331)
@@ -90,10 +90,7 @@
     eval {
     return if $LJ::DISABLED{notificationpromo};
 
-    return unless LJ::Pay::Promotion::Notifications->is_avialable_region($u);
-
-    my $active_region = lc($u->prop('country'));
-
+    my $active_region = LJ::Pay::Promotion::Notifications->is_avialable_region($u);
     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