X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpublic.php;h=23d9f039788749d2b45a9528fc3d9f1b8a8464f8;hb=69c8fe060fb830e22030022567fd2f9459e95fd7;hp=7e47b9f759935bb5a3ac17c73f2fe154d0e00d5a;hpb=2fcae93272eb2d4e432c60cc4f5fd7f70c9d9f22;p=quix0rs-gnu-social.git diff --git a/actions/public.php b/actions/public.php index 7e47b9f759..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')); @@ -41,7 +43,7 @@ class PublicAction extends StreamAction { function show_top() { if (common_logged_in()) { - common_notice_form(); + common_notice_form('public'); } } @@ -50,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) {