Bugfix for check that the DFRN entry already exists

This commit is contained in:
Michael 2018-02-09 06:20:01 +00:00
parent 5c1fae2536
commit a2f172e084

View file

@ -2411,10 +2411,8 @@ class DFRN
); );
// Is there an existing item? // Is there an existing item?
if (DBM::is_result($current) && self::isEditedTimestampNewer($current[0], $item) if (DBM::is_result($current) && !self::isEditedTimestampNewer($current[0], $item)) {
&& (DateTimeFormat::utc($item["edited"]) < $current[0]["edited"]) logger("Item ".$item["uri"]." already existed in this version.", LOGGER_DEBUG);
) {
logger("Item ".$item["uri"]." already existed.", LOGGER_DEBUG);
return; return;
} }