X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribers.php;h=6dda7312d67bf7eafb408375f30c6641435951e5;hb=4d29ca0b91201f6df42940297ed5b64b070efe49;hp=4bced62840dcda4f3f8a28d591583b901729ccc1;hpb=82ea0f7884d291f11964d5a54dbf8194ce24cb58;p=quix0rs-gnu-social.git diff --git a/actions/subscribers.php b/actions/subscribers.php index 4bced62840..6dda7312d6 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'; + } + } }