]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add anonymous message for user pages
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 23 Jan 2009 03:15:03 +0000 (04:15 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 23 Jan 2009 03:15:03 +0000 (04:15 +0100)
actions/showstream.php

index 9e209cd4a06e352bc212e0e35638b67a28ab2752..3bccdcb1a8255cdc40c38e577338886fdaf310d8 100644 (file)
@@ -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!