]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/public.php
enable confirmation queue
[quix0rs-gnu-social.git] / actions / public.php
index 763f278bdf75818d784a2e5f67abc5517249bbc5..23d9f039788749d2b45a9528fc3d9f1b8a8464f8 100644 (file)
@@ -28,6 +28,8 @@ class PublicAction extends StreamAction {
 
                $page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
 
+               header('X-XRDS-Location: '. common_local_url('publicxrds'));
+               
                common_show_header(_t('Public timeline'), 
                                                   array($this, 'show_header'), NULL,  
                                                   array($this, 'show_top'));
@@ -40,12 +42,9 @@ class PublicAction extends StreamAction {
        }
 
        function show_top() {
-
                if (common_logged_in()) {
-                       common_notice_form();
+                       common_notice_form('public');
                }
-               
-               $this->views_menu();
        }
        
        function show_header() {
@@ -53,6 +52,9 @@ class PublicAction extends StreamAction {
                                                                         'href' => common_local_url('publicrss'),
                                                                         'type' => 'application/rss+xml',
                                                                         'title' => _t('Public Stream Feed')));
+               # for client side of OpenID authentication
+               common_element('meta', array('http-equiv' => 'X-XRDS-Location',
+                                                                        'content' => common_local_url('publicxrds')));
        }
        
        function show_notices($page) {