diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-27 11:17:53 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-27 11:17:53 +0200 |
commit | 1ed8b9dd149b9d2cb2fe30dc56ddc24cc523255c (patch) | |
tree | 6a4ca6900f9fee8cd35648bba7c77911c58c7e32 /Zotlabs/Lib/Libzot.php | |
parent | cf4912cb3d8dc1e9e35bd5260944de89ac14e521 (diff) | |
download | volse-hubzilla-1ed8b9dd149b9d2cb2fe30dc56ddc24cc523255c.tar.gz volse-hubzilla-1ed8b9dd149b9d2cb2fe30dc56ddc24cc523255c.tar.bz2 volse-hubzilla-1ed8b9dd149b9d2cb2fe30dc56ddc24cc523255c.zip |
fix php error
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 72cf892d0..1843a081d 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -674,6 +674,7 @@ class Libzot { $arr['hash'] = $xchan_hash; $import_photos = false; + $xchan_censored = 0; $sig_methods = ((array_key_exists('signing', $arr) && is_array($arr['signing'])) ? $arr['signing'] : ['sha256']); $verified = false; @@ -705,6 +706,9 @@ class Libzot { if ($arr['photo'] && array_key_exists('updated', $arr['photo']) && $arr['photo']['updated'] > $r[0]['xchan_photo_date']) $import_photos = true; + $xchan_censored = $r[0]['xchan_censored'] ?? 0; + + // if we import an entry from a site that's not ours and either or both of us is off the grid - hide the entry. /** @TODO: check if we're the same directory realm, which would mean we are allowed to see it */ @@ -965,7 +969,7 @@ class Libzot { } // update updates if anything changed bump the ud_date - Libzotdir::update($xchan_hash, $address, $changed, $r[0]['xchan_censored']); + Libzotdir::update($xchan_hash, $address, $changed, $xchan_censored); if (empty($ret['message'])) { $ret['success'] = true; |