fix attributes on homepage output

This commit is contained in:
Evan Prodromou 2010-04-09 14:11:18 -04:00
parent ce40425533
commit 4e3fad4f0d
3 changed files with 12 additions and 0 deletions

View File

@ -240,9 +240,13 @@ class GroupMemberListItem extends ProfileListItem
function homepageAttributes()
{
$aAttrs = parent::linkAttributes();
if (common_config('nofollow', 'members')) {
$aAttrs['rel'] = 'nofollow';
}
return $aAttrs;
}
}

View File

@ -168,9 +168,13 @@ class PeopleTagListItem extends ProfileListItem
function homepageAttributes()
{
$aAttrs = parent::linkAttributes();
if (common_config('nofollow', 'peopletag')) {
$aAttrs['rel'] = 'nofollow';
}
return $aAttrs;
}
}

View File

@ -177,8 +177,12 @@ class SubscribersListItem extends SubscriptionListItem
function homepageAttributes()
{
$aAttrs = parent::linkAttributes();
if (common_config('nofollow', 'subscribers')) {
$aAttrs['rel'] = 'nofollow';
}
return $aAttrs;
}
}