]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use nofollow for subscribers list
authorEvan Prodromou <evan@status.net>
Mon, 5 Apr 2010 15:18:03 +0000 (11:18 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 5 Apr 2010 15:18:03 +0000 (11:18 -0400)
actions/subscribers.php

index 4bced62840dcda4f3f8a28d591583b901729ccc1..6dda7312d67bf7eafb408375f30c6641435951e5 100644 (file)
@@ -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';
+        }
+    }
 }