From b09a58e8dc07995398baa79f0e90df7698780f4d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 23 Jan 2009 04:15:03 +0100 Subject: [PATCH] Add anonymous message for user pages --- actions/showstream.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/actions/showstream.php b/actions/showstream.php index 9e209cd4a0..3bccdcb1a8 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!