]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix for check that the DFRN entry already exists
authorMichael <heluecht@pirati.ca>
Fri, 9 Feb 2018 06:20:01 +0000 (06:20 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 9 Feb 2018 06:20:01 +0000 (06:20 +0000)
src/Protocol/DFRN.php

index 9f690847a7bb9d543777c6ce9f57df3c006c40e0..ca881484611302634828fb397b3fce0625e260ff 100644 (file)
@@ -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;
                }