X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=5d06c3c2951a887fe11d7c5c8df0fdf26fd43139;hb=4aedce6864eb27a0c37b3dcae22fee0aa16ae537;hp=763f278bdf75818d784a2e5f67abc5517249bbc5;hpb=52205fc6be6560d97aa8f3dc99da597498cc182e;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 763f278bdf..5d06c3c295 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(); } - - $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) {