]> git.mxchange.org Git - friendica.git/commitdiff
autodiscover community pages for the directory
authorFriendika <info@friendika.com>
Sun, 27 Feb 2011 22:17:42 +0000 (14:17 -0800)
committerFriendika <info@friendika.com>
Sun, 27 Feb 2011 22:17:42 +0000 (14:17 -0800)
mod/profile.php

index 15a3a861f969d36028799d1323af508fb3b96597..827530bc8aa63afa8a1c532c16a84a5d9ec7a2e8 100644 (file)
@@ -18,6 +18,9 @@ function profile_init(&$a) {
 
        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'))                               
                $a->page['htmlhead'] .= '<link rel="openid.server" href="' . $a->profile['openidserver'] . '" />' . "\r\n";
        if(x($a->profile,'openid')) {