From 570fc17e8a383d7ddc3fa13143d6547a61758f32 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Thu, 9 Jan 2020 17:02:26 +0000 Subject: [PATCH] [SHOWSTREAM] Add robots meta-tag for remote profiles --- actions/showstream.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/actions/showstream.php b/actions/showstream.php index 7cfa004c92..de6039dbe1 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -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',