fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-05-13 04:50 am

[dw-free] /icons needs don't-index metatags if user has turned them on

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

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

Block robots on the icons page.

Patch by [personal profile] ninetydegrees.

Files modified:
  • cgi-bin/LJ/S2/IconsPage.pm
--------------------------------------------------------------------------------
diff -r 454004989469 -r d8b263f1f765 cgi-bin/LJ/S2/IconsPage.pm
--- a/cgi-bin/LJ/S2/IconsPage.pm	Thu May 12 18:11:15 2011 +0800
+++ b/cgi-bin/LJ/S2/IconsPage.pm	Fri May 13 12:49:42 2011 +0800
@@ -10,6 +10,10 @@
     $p->{'_type'} = "IconsPage";
     $p->{'view'} = "icons";
 
+    if ($u->should_block_robots) {
+        $p->{'head_content'} .= LJ::robot_meta_tags();
+    }
+
     $p->{can_manage} = $can_manage;
 
     my @allpics = LJ::Userpic->load_user_userpics($u);
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org