From 63eb323e8b777af217c061f1337c6246abc292ff Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sun, 26 Jul 2020 13:59:37 +0300 Subject: [PATCH] [SHOWSTREAM] Add "noindex" robots meta-tag for silenced profiles --- actions/showstream.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/actions/showstream.php b/actions/showstream.php index de6039dbe1..96aeaa4a47 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -36,11 +36,10 @@ defined('GNUSOCIAL') || die(); * It shows a stream of the user's posts, plus lots of profile info, links * to subscriptions and stuff, etc. * - * @category Personal - * @package StatusNet - * @author Evan Prodromou - * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://status.net/ + * @category Personal + * @package GNUsocial + * @author Evan Prodromou + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ class ShowstreamAction extends NoticestreamAction { @@ -217,7 +216,7 @@ class ShowstreamAction extends NoticestreamAction public function extraHead() { - if (!$this->target->isLocal()) { + if ($this->target->isSilenced() || !$this->target->isLocal()) { $this->element( 'meta', [