use nofollow for group members list

This commit is contained in:
Evan Prodromou 2010-04-05 11:17:51 -04:00
parent 95229bc7a0
commit 16827a66ba
1 changed files with 18 additions and 0 deletions

View File

@ -212,6 +212,7 @@ class GroupMemberListItem extends ProfileListItem
} }
} }
function showGroupBlockForm() function showGroupBlockForm()
{ {
$user = common_current_user(); $user = common_current_user();
@ -224,7 +225,24 @@ class GroupMemberListItem extends ProfileListItem
$bf->show(); $bf->show();
$this->out->elementEnd('li'); $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';
}
} }
} }