fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-09-08 08:38 am

[dw-free] OpenID accounts need to be excluded from search engines

[commit: http://hg.dwscoalition.org/dw-free/rev/7c0d6bf01040]

http://bugs.dwscoalition.org/show_bug.cgi?id=2956

Exclude OpenID accounts from search engines automatically (no content +
default privacy)

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 629d071cfeac -r 7c0d6bf01040 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Wed Sep 08 16:14:31 2010 +0800
+++ b/cgi-bin/LJ/User.pm	Wed Sep 08 16:33:53 2010 +0800
@@ -2948,6 +2948,7 @@ sub should_block_robots {
     my $u = shift;
 
     return 1 if $u->is_syndicated;
+    return 1 if $u->is_identity;
     return 1 if $u->prop('opt_blockrobots');
 
     return 0 unless LJ::is_enabled( 'adult_content' );
--------------------------------------------------------------------------------