aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-03 16:53:48 +0000
committerMario <mario@mariovavti.com>2021-10-03 16:53:48 +0000
commit55d905fdd934090ce4c6511a3db035e073cd1fcb (patch)
treea52909e237863df09f921bb9c3fa9cfa8dffcb73 /Zotlabs/Lib/Libzot.php
parent0722188ea6d6c1eb30500a540c49adf0b5d25eb8 (diff)
downloadvolse-hubzilla-55d905fdd934090ce4c6511a3db035e073cd1fcb.tar.gz
volse-hubzilla-55d905fdd934090ce4c6511a3db035e073cd1fcb.tar.bz2
volse-hubzilla-55d905fdd934090ce4c6511a3db035e073cd1fcb.zip
clone channel delete issues - part 2
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 531b83359..7c9c8a309 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -310,7 +310,6 @@ class Libzot {
return false;
}
-
logger('zot-info: ' . print_r($record, true), LOGGER_DATA, LOG_DEBUG);
$x = self::import_xchan($record['data'], (($force) ? UPDATE_FLAGS_FORCED : UPDATE_FLAGS_UPDATED));
@@ -616,7 +615,6 @@ class Libzot {
*/
static function import_xchan($arr, $ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) {
-
/**
* @hooks import_xchan
* Called when processing the result of zot_finger() to store the result
@@ -666,6 +664,7 @@ class Libzot {
$arr['connect_url'] = '';
if ($r) {
+
if ($arr['photo'] && array_key_exists('updated', $arr['photo']) && $arr['photo']['updated'] > $r[0]['xchan_photo_date'])
$import_photos = true;
@@ -2880,8 +2879,9 @@ class Libzot {
if ($deleted)
$ret['deleted'] = $deleted;
- if (intval($e['channel_removed']))
+ if (intval($e['channel_removed'])) {
$ret['deleted_locally'] = true;
+ }
// premium or other channel desiring some contact with potential followers before connecting.
// This is a template - %s will be replaced with the follow_url we discover for the return channel.