From: Friendika <info@friendika.com>
Date: Sun, 27 Feb 2011 22:17:42 +0000 (-0800)
Subject: autodiscover community pages for the directory
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9102fb3a6f5f205fc9d178ae2ce656674b1ba106;p=friendica.git

autodiscover community pages for the directory
---

diff --git a/mod/profile.php b/mod/profile.php
index 15a3a861f9..827530bc8a 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -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')) {