autodiscover community pages for the directory

This commit is contained in:
Friendika 2011-02-27 14:17:42 -08:00
parent b41b0fcba9
commit 9102fb3a6f

View file

@ -18,6 +18,9 @@ function profile_init(&$a) {
profile_load($a,$which,$profile); profile_load($a,$which,$profile);
if((x($a->profile,'page-flags')) && ($a->profile['page-flags'] & PAGE_COMMUNITY)) {
$a->page['htmlhead'] .= '<meta name="friendika.community" content="true" />';
}
if(x($a->profile,'openidserver')) if(x($a->profile,'openidserver'))
$a->page['htmlhead'] .= '<link rel="openid.server" href="' . $a->profile['openidserver'] . '" />' . "\r\n"; $a->page['htmlhead'] .= '<link rel="openid.server" href="' . $a->profile['openidserver'] . '" />' . "\r\n";
if(x($a->profile,'openid')) { if(x($a->profile,'openid')) {