[SHOWSTREAM] Add "noindex" robots meta-tag for silenced profiles

This commit is contained in:
Alexei Sorokin 2020-07-26 13:59:37 +03:00 committed by Diogo Peralta Cordeiro
parent 7d7dbe627b
commit 7c727e2969

View File

@ -37,10 +37,9 @@ defined('GNUSOCIAL') || die();
* to subscriptions and stuff, etc.
*
* @category Personal
* @package StatusNet
* @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
* @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',
[