From: Friendika <info@friendika.com>
Date: Sun, 31 Jul 2011 03:48:55 +0000 (-0700)
Subject: show correct self profile in api
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=149d52da8b49893426a584b14b2a48f81d32113b;p=friendica.git

show correct self profile in api
---

diff --git a/boot.php b/boot.php
index 5d4f547696..cdde7652c6 100644
--- a/boot.php
+++ b/boot.php
@@ -1,6 +1,6 @@
 <?php
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1056' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1057' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1076      );
 
diff --git a/include/api.php b/include/api.php
index 2b1a8b0f5a..31bf0624bd 100644
--- a/include/api.php
+++ b/include/api.php
@@ -201,7 +201,7 @@
 				api_login($a); return False;
 			} else {
 				$user = $_SESSION['uid'];
-				$extra_query = "AND `contact`.`uid` = %d ";
+				$extra_query = "AND `contact`.`uid` = %d AND `contact`.`self` = 1 ";
 			}
 			
 		}