summaryrefslogtreecommitdiff
path: root/actions/subscribers.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 11:18:03 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 11:18:03 -0400
commit2a489018b11838280ef0c74f6727d5b9c0c10a0f (patch)
tree09d713e6acafce4cb75735f5eb0e37041329970e /actions/subscribers.php
parent16827a66bab59964f315d39a305ddac19a8f2f18 (diff)
use nofollow for subscribers list
Diffstat (limited to 'actions/subscribers.php')
-rw-r--r--actions/subscribers.php18
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';
+ }
+ }
}