summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-15 16:12:16 -0800
committerBrion Vibber <brion@pobox.com>2010-11-15 16:12:16 -0800
commit5fdcba472b8673380248ab0d5dce45967f774caa (patch)
tree65945eb73772a2b7c2e455fe1a2a5b5c5cb7f5b5 /plugins
parent88c35c2ccea5edcd08708f30247dc51a7473ecce (diff)
RemoteProfileAction cleanup:
- meta robots to prevent spidering - a little notice if silenced
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ModPlus/remoteprofileaction.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/ModPlus/remoteprofileaction.php b/plugins/ModPlus/remoteprofileaction.php
index f3ddbc7c6..5b25da170 100644
--- a/plugins/ModPlus/remoteprofileaction.php
+++ b/plugins/ModPlus/remoteprofileaction.php
@@ -64,6 +64,11 @@ class RemoteProfileAction extends ShowstreamAction
$url);
$html = common_markup_to_html($markdown);
$this->raw($html);
+
+ if ($this->profile->hasRole(Profile_role::SILENCED)) {
+ $markdown = _m('Site moderators have silenced this profile, which prevents delivery of new messages to any users on this site.');
+ $this->raw(common_markup_to_html($markdown));
+ }
}
function getFeeds()
@@ -71,9 +76,13 @@ class RemoteProfileAction extends ShowstreamAction
// none
}
+ /**
+ * Don't do various extra stuff, and also trim some things to avoid crawlers.
+ */
function extraHead()
{
- // none
+ $this->element('meta', array('name' => 'robots',
+ 'content' => 'noindex,nofollow'));
}
function showLocalNav()