From: Evan Prodromou Date: Fri, 9 Apr 2010 18:11:18 +0000 (-0400) Subject: fix attributes on homepage output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e3fad4f0d20e843cf42c07026ecbdb5a566562a;p=quix0rs-gnu-social.git fix attributes on homepage output --- diff --git a/actions/groupmembers.php b/actions/groupmembers.php index fb4e46dbc0..e72ef371ac 100644 --- a/actions/groupmembers.php +++ b/actions/groupmembers.php @@ -240,9 +240,13 @@ class GroupMemberListItem extends ProfileListItem function homepageAttributes() { + $aAttrs = parent::linkAttributes(); + if (common_config('nofollow', 'members')) { $aAttrs['rel'] = 'nofollow'; } + + return $aAttrs; } } diff --git a/actions/peopletag.php b/actions/peopletag.php index 456cc21c4c..32652f7551 100644 --- a/actions/peopletag.php +++ b/actions/peopletag.php @@ -168,9 +168,13 @@ class PeopleTagListItem extends ProfileListItem function homepageAttributes() { + $aAttrs = parent::linkAttributes(); + if (common_config('nofollow', 'peopletag')) { $aAttrs['rel'] = 'nofollow'; } + + return $aAttrs; } } diff --git a/actions/subscribers.php b/actions/subscribers.php index 6dda7312d6..6f1520b3f4 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -177,8 +177,12 @@ class SubscribersListItem extends SubscriptionListItem function homepageAttributes() { + $aAttrs = parent::linkAttributes(); + if (common_config('nofollow', 'subscribers')) { $aAttrs['rel'] = 'nofollow'; } + + return $aAttrs; } }