[SHOWSTREAM] Add robots meta-tag for remote profiles

This commit is contained in:
Diogo Cordeiro 2020-01-09 17:02:26 +00:00 committed by Diogo Peralta Cordeiro
parent 684a1a4143
commit 570fc17e8a
1 changed files with 10 additions and 0 deletions

View File

@ -217,6 +217,16 @@ class ShowstreamAction extends NoticestreamAction
public function extraHead()
{
if (!$this->target->isLocal()) {
$this->element(
'meta',
[
'name' => 'robots',
'content' => 'noindex',
]
);
}
if ($this->target->bio) {
$this->element(
'meta',