[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
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3659
Block robots on the icons page.
Patch by
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);
--------------------------------------------------------------------------------
