mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
Merge pull request #4430 from annando/import-check
Bugfix for check that the DFRN entry already exists
This commit is contained in:
commit
1a8851ac38
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue