From 8c7e076dae46a81e38620048d1fe3894c1a6d70e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 6 Mar 2014 01:29:42 -0800 Subject: bring friends back --- boot.php | 2 +- include/zot.php | 20 ++++++++++---------- install/update.php | 10 +++++++++- mod/zfinger.php | 3 +-- version.inc | 2 +- 5 files changed, 22 insertions(+), 15 deletions(-) diff --git a/boot.php b/boot.php index 863085526..f4774c4ba 100755 --- a/boot.php +++ b/boot.php @@ -47,7 +47,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'ZOT_REVISION', 1 ); -define ( 'DB_UPDATE_VERSION', 1102 ); +define ( 'DB_UPDATE_VERSION', 1103 ); define ( 'EOL', '
' . "\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/include/zot.php b/include/zot.php index cfabbae2e..934348d2d 100644 --- a/include/zot.php +++ b/include/zot.php @@ -364,20 +364,20 @@ function zot_refresh($them,$channel = null, $force = false) { intval(ABOOK_FLAG_SELF) ); - if(($connected_set === 0 || $connected_set === 1) && ($connected_set !== $current_abook_unconnected)) { +// if(($connected_set === 0 || $connected_set === 1) && ($connected_set !== $current_abook_unconnected)) { // if they are in your address book but you aren't in theirs, and/or this does not // match your current connected state setting, toggle it. - $y1 = q("update abook set abook_flags = (abook_flags ^ %d) - where abook_xchan = '%s' and abook_channel = %d - and not (abook_flags & %d) limit 1", - intval(ABOOK_FLAG_UNCONNECTED), - dbesc($x['hash']), - intval($channel['channel_id']), - intval(ABOOK_FLAG_SELF) - ); - } +// $y1 = q("update abook set abook_flags = (abook_flags ^ %d) +// where abook_xchan = '%s' and abook_channel = %d +// and not (abook_flags & %d) limit 1", +// intval(ABOOK_FLAG_UNCONNECTED), +// dbesc($x['hash']), +// intval($channel['channel_id']), +// intval(ABOOK_FLAG_SELF) +// ); +// } if(! $y) logger('abook update failed'); diff --git a/install/update.php b/install/update.php index 175b89285..70372241d 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@