holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12295: 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-17 05:49:00 UTC (rev 12294)
+++ trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-07-17 07:13:20 UTC (rev 12295)
@@ -95,7 +95,7 @@
     my $active_region = lc($u->prop('country'));
 
     unless ($active_region) {
-        my $db = LJ::get_cluster_writer($u);
+        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($ip);
     }

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