[SHOWSTREAM] Add "noindex" robots meta-tag for silenced profiles
This commit is contained in:
parent
2861ae2823
commit
63eb323e8b
@ -36,11 +36,10 @@ defined('GNUSOCIAL') || die();
|
|||||||
* It shows a stream of the user's posts, plus lots of profile info, links
|
* It shows a stream of the user's posts, plus lots of profile info, links
|
||||||
* to subscriptions and stuff, etc.
|
* to subscriptions and stuff, etc.
|
||||||
*
|
*
|
||||||
* @category Personal
|
* @category Personal
|
||||||
* @package StatusNet
|
* @package GNUsocial
|
||||||
* @author Evan Prodromou <evan@status.net>
|
* @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
|
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||||
* @link http://status.net/
|
|
||||||
*/
|
*/
|
||||||
class ShowstreamAction extends NoticestreamAction
|
class ShowstreamAction extends NoticestreamAction
|
||||||
{
|
{
|
||||||
@ -217,7 +216,7 @@ class ShowstreamAction extends NoticestreamAction
|
|||||||
|
|
||||||
public function extraHead()
|
public function extraHead()
|
||||||
{
|
{
|
||||||
if (!$this->target->isLocal()) {
|
if ($this->target->isSilenced() || !$this->target->isLocal()) {
|
||||||
$this->element(
|
$this->element(
|
||||||
'meta',
|
'meta',
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user