mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:50:13 +00:00
Issue 13955: Check for publish date upon receival
This commit is contained in:
parent
f2ccce05b8
commit
bae7644d6f
5 changed files with 48 additions and 40 deletions
|
@ -563,7 +563,7 @@ class Feed
|
|||
} elseif (!Item::isValid($item)) {
|
||||
Logger::info('Feed item is invalid', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]);
|
||||
continue;
|
||||
} elseif (Item::isTooOld($item)) {
|
||||
} elseif (DI::contentItem()->isTooOld($item['created'], $item['uid'])) {
|
||||
Logger::info('Feed is too old', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue