We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 16827a66 authored by Evan Prodromou's avatar Evan Prodromou

use nofollow for group members list

parent 95229bc7
......@@ -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';
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment