diff options
author | Evan Prodromou <evan@status.net> | 2010-04-05 11:18:03 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-05 11:18:03 -0400 |
commit | 2a489018b11838280ef0c74f6727d5b9c0c10a0f (patch) | |
tree | 09d713e6acafce4cb75735f5eb0e37041329970e | |
parent | 16827a66bab59964f315d39a305ddac19a8f2f18 (diff) |
use nofollow for subscribers list
-rw-r--r-- | actions/subscribers.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/subscribers.php b/actions/subscribers.php index 4bced6284..6dda7312d 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'; + } + } } |