X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=23d9f039788749d2b45a9528fc3d9f1b8a8464f8;hb=3f1f1427d9d65215af7546de2ad5c16120f44857;hp=763f278bdf75818d784a2e5f67abc5517249bbc5;hpb=52205fc6be6560d97aa8f3dc99da597498cc182e;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 763f278bdf..23d9f03978 100644 --- a/actions/public.php +++ b/actions/public.php @@ -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) {