mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix php error
This commit is contained in:
@@ -674,6 +674,7 @@ class Libzot {
|
|||||||
$arr['hash'] = $xchan_hash;
|
$arr['hash'] = $xchan_hash;
|
||||||
|
|
||||||
$import_photos = false;
|
$import_photos = false;
|
||||||
|
$xchan_censored = 0;
|
||||||
|
|
||||||
$sig_methods = ((array_key_exists('signing', $arr) && is_array($arr['signing'])) ? $arr['signing'] : ['sha256']);
|
$sig_methods = ((array_key_exists('signing', $arr) && is_array($arr['signing'])) ? $arr['signing'] : ['sha256']);
|
||||||
$verified = false;
|
$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'])
|
if ($arr['photo'] && array_key_exists('updated', $arr['photo']) && $arr['photo']['updated'] > $r[0]['xchan_photo_date'])
|
||||||
$import_photos = true;
|
$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.
|
// 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 */
|
/** @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
|
// 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'])) {
|
if (empty($ret['message'])) {
|
||||||
$ret['success'] = true;
|
$ret['success'] = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user