From a2f172e084bee11c7884df9aacd954b299df4c46 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 9 Feb 2018 06:20:01 +0000 Subject: [PATCH] Bugfix for check that the DFRN entry already exists --- src/Protocol/DFRN.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 9f690847a7..ca88148461 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2411,10 +2411,8 @@ class DFRN ); // Is there an existing item? - if (DBM::is_result($current) && self::isEditedTimestampNewer($current[0], $item) - && (DateTimeFormat::utc($item["edited"]) < $current[0]["edited"]) - ) { - logger("Item ".$item["uri"]." already existed.", LOGGER_DEBUG); + if (DBM::is_result($current) && !self::isEditedTimestampNewer($current[0], $item)) { + logger("Item ".$item["uri"]." already existed in this version.", LOGGER_DEBUG); return; }