diff options
author | friendica <info@friendica.com> | 2014-03-06 01:29:42 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-06 01:29:42 -0800 |
commit | 8c7e076dae46a81e38620048d1fe3894c1a6d70e (patch) | |
tree | b6de7429391adf798c2bbb172c6f8a4f9b57a79e | |
parent | 020ab09657dcfe61f2f690dac90eef64476433fa (diff) | |
download | volse-hubzilla-8c7e076dae46a81e38620048d1fe3894c1a6d70e.tar.gz volse-hubzilla-8c7e076dae46a81e38620048d1fe3894c1a6d70e.tar.bz2 volse-hubzilla-8c7e076dae46a81e38620048d1fe3894c1a6d70e.zip |
bring friends back
-rwxr-xr-x | boot.php | 2 | ||||
-rw-r--r-- | include/zot.php | 20 | ||||
-rw-r--r-- | install/update.php | 10 | ||||
-rw-r--r-- | mod/zfinger.php | 3 | ||||
-rw-r--r-- | version.inc | 2 |
5 files changed, 22 insertions, 15 deletions
@@ -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', '<br />' . "\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 @@ <?php -define( 'UPDATE_VERSION' , 1102 ); +define( 'UPDATE_VERSION' , 1103 ); /** * @@ -1151,3 +1151,11 @@ function update_r1101() { return UPDATE_SUCCESS; } +function update_r1102() { + $r = q("update abook set abook_flags = (abook_flags - %d) + where ( abook_flags & %d)", + intval(ABOOK_FLAG_UNCONNECTED), + intval(ABOOK_FLAG_UNCONNECTED), + ); + return UPDATE_SUCCESS; +}
\ No newline at end of file diff --git a/mod/zfinger.php b/mod/zfinger.php index 75abfefe4..4f59c1973 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -182,9 +182,8 @@ function zfinger_init(&$a) { $permissions = get_all_perms($e['channel_id'],$ztarget_hash,false); - $permissions['connected'] = false; - if($ztarget_hash) { + $permissions['connected'] = false; $b = q("select * from abook where abook_xchan = '%s' and abook_channel = %d limit 1", dbesc($ztarget_hash), intval($e['channel_id']) diff --git a/version.inc b/version.inc index 77040f467..6410634b2 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-03-05.607 +2014-03-06.608 |