use nofollow for subscribers list

This commit is contained in:
Evan Prodromou 2010-04-05 11:18:03 -04:00
parent 16827a66ba
commit 2a489018b1
1 changed files with 18 additions and 0 deletions

View File

@ -163,4 +163,22 @@ class SubscribersListItem extends SubscriptionListItem
$bf->show();
}
}
function linkAttributes()
{
$aAttrs = parent::linkAttributes();
if (common_config('nofollow', 'subscribers')) {
$aAttrs['rel'] .= ' nofollow';
}
return $aAttrs;
}
function homepageAttributes()
{
if (common_config('nofollow', 'subscribers')) {
$aAttrs['rel'] = 'nofollow';
}
}
}