vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r19275: LJSUP-9052: We should disable displaying...

Committer: vsukhanov
LJSUP-9052: We should disable displaying country and city near IPs
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-06-10 03:20:03 UTC (rev 19274)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-06-10 04:49:03 UTC (rev 19275)
@@ -2613,7 +2613,9 @@
                 {
                     ## resolve IP to a location
                     my $ip   = $post->{'props'}->{'poster_ip'};
-                    my $info = LJ::GeoLocation->get_city_info_by_ip($ip);
+                    my $info = LJ::is_enabled('display_remote_location_on_comments_page')
+                                ? LJ::GeoLocation->get_city_info_by_ip($ip)
+                                : '';
 
                     if ($info and my $country = $info->{country_name} and my $city = $info->{city_name}){
                         ## Display location of an IP.

Tags: livejournal, pm, vadvs
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