aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-01-23 13:58:05 +0100
committerMax Kostikov <max@kostikov.co>2021-01-23 13:58:05 +0100
commit893847c649a9f3eb99cbaa8fc3bb795bc3184b7a (patch)
tree4c213213ee41290aa2fdb183b2c6f996570eddb0 /Zotlabs
parent28ae78c579d9423f81f89443c50aa240609fb8f3 (diff)
downloadvolse-hubzilla-893847c649a9f3eb99cbaa8fc3bb795bc3184b7a.tar.gz
volse-hubzilla-893847c649a9f3eb99cbaa8fc3bb795bc3184b7a.tar.bz2
volse-hubzilla-893847c649a9f3eb99cbaa8fc3bb795bc3184b7a.zip
Fix duplicate profile photos creation for clones
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libzot.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 8847f0975..150a6af03 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -667,9 +667,8 @@ class Libzot {
$arr['connect_url'] = '';
if ($r) {
- if ($arr['photo'] && array_key_exists('updated', $arr['photo']) && $r[0]['xchan_photo_date'] != $arr['photo']['updated']) {
+ if ($arr['photo'] && array_key_exists('updated', $arr['photo']) && $arr['photo']['updated'] > $r[0]['xchan_photo_date'])
$import_photos = true;
- }
// 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 */