summaryrefslogtreecommitdiff
path: root/actions/groupmembers.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 11:17:51 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 11:17:51 -0400
commit16827a66bab59964f315d39a305ddac19a8f2f18 (patch)
treee00f34b082b1d8a2c35f4098662ae6087d0cd129 /actions/groupmembers.php
parent95229bc7a060bb6289aa9b7950f4e69acd96a1e7 (diff)
use nofollow for group members list
Diffstat (limited to 'actions/groupmembers.php')
-rw-r--r--actions/groupmembers.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/groupmembers.php b/actions/groupmembers.php
index a16debd7b..fb4e46dbc 100644
--- a/actions/groupmembers.php
+++ b/actions/groupmembers.php
@@ -212,6 +212,7 @@ class GroupMemberListItem extends ProfileListItem
}
}
+
function showGroupBlockForm()
{
$user = common_current_user();
@@ -224,7 +225,24 @@ class GroupMemberListItem extends ProfileListItem
$bf->show();
$this->out->elementEnd('li');
}
+ }
+
+ function linkAttributes()
+ {
+ $aAttrs = parent::linkAttributes();
+
+ if (common_config('nofollow', 'members')) {
+ $aAttrs['rel'] .= ' nofollow';
+ }
+
+ return $aAttrs;
+ }
+ function homepageAttributes()
+ {
+ if (common_config('nofollow', 'members')) {
+ $aAttrs['rel'] = 'nofollow';
+ }
}
}