]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
Bugfix for check that the DFRN entry already exists
[friendica.git] / 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;
                }