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

index a16debd7b068ecd4e69deec35d61e42475f83752..fb4e46dbc0ea145e40b58a626d5efbfce44c47d8 100644 (file)
@@ -212,6 +212,7 @@ class GroupMemberListItem extends ProfileListItem
         }
 
     }
+
     function showGroupBlockForm()
     {
         $user = common_current_user();
@@ -224,7 +225,24 @@ class GroupMemberListItem extends ProfileListItem
             $bf->show();
             $this->out->elementEnd('li');
         }
+    }
+
+    function linkAttributes()
+    {
+        $aAttrs = parent::linkAttributes();
+
+        if (common_config('nofollow', 'members')) {
+            $aAttrs['rel'] .= ' nofollow';
+        }
+
+        return $aAttrs;
+    }
 
+    function homepageAttributes()
+    {
+        if (common_config('nofollow', 'members')) {
+            $aAttrs['rel'] = 'nofollow';
+        }
     }
 }