summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-23 04:15:03 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-23 04:15:03 +0100
commitb09a58e8dc07995398baa79f0e90df7698780f4d (patch)
tree4aaa956dad0270966e56f6d7ca376ffff65b3307
parent59e386db45f5d75b44afec42f139be146a8838e7 (diff)
Add anonymous message for user pages
-rw-r--r--actions/showstream.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 9e209cd4a..3bccdcb1a 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -531,6 +531,18 @@ class ShowstreamAction extends Action
$this->elementEnd('div');
}
+
+ function showAnonymousMessage()
+ {
+ $m = sprintf(_('**%s** has an account on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
+ 'based on the Free Software [Laconica](http://laconi.ca/) tool. ' .
+ '[Join now](%%%%action.register%%%%) to follow **%s**\'s notices and many more! ([Read more](%%%%doc.help%%%%))'),
+ $this->user->nickname, $this->user->nickname);
+ $this->elementStart('p', 'anonymous');
+ $this->raw(common_markup_to_html($m));
+ $this->elementEnd('p');
+ }
+
}
// We don't show the author for a profile, since we already know who it is!