include self in load_contact_links so you don't get a connect menu entry for yourself

This commit is contained in:
friendica 2014-11-06 23:50:54 -08:00
parent 4543d3213a
commit f077badcb6

View File

@ -1804,9 +1804,8 @@ function load_contact_links($uid) {
// logger('load_contact_links'); // logger('load_contact_links');
$r = q("SELECT abook_id, abook_flags, abook_my_perms, abook_their_perms, xchan_hash, xchan_photo_m, xchan_name, xchan_url from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d) ", $r = q("SELECT abook_id, abook_flags, abook_my_perms, abook_their_perms, xchan_hash, xchan_photo_m, xchan_name, xchan_url from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d ",
intval($uid), intval($uid)
intval(ABOOK_FLAG_SELF)
); );
if($r) { if($r) {
foreach($r as $rr){ foreach($r as $rr){