From: Evan Prodromou Date: Mon, 5 Apr 2010 15:18:03 +0000 (-0400) Subject: use nofollow for subscribers list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a489018b11838280ef0c74f6727d5b9c0c10a0f;p=quix0rs-gnu-social.git use nofollow for subscribers list --- diff --git a/actions/subscribers.php b/actions/subscribers.php index 4bced62840..6dda7312d6 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -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'; + } + } }