From b30d2c9c6b9119d117b0d9039dc0a8686b40a387 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 30 Nov 2020 20:59:18 +0000 Subject: [PATCH] Renamed function --- src/Model/Item.php | 2 +- src/Protocol/Feed.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 35faa4075..d5f503156 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1431,7 +1431,7 @@ class Item * @param array $item * @return boolean item is too old */ - public static function tooOld(array $item) + public static function isTooOld(array $item) { // check for create date and expire time $expire_interval = DI::config()->get('system', 'dbclean-expire-days', 0); diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 5d682d837..6390fab65 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -505,7 +505,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::tooOld($item)) { + } elseif (Item::isTooOld($item)) { Logger::info('Feed is too old', ['created' => $item['created'], 'uid' => $item['uid'], 'uri' => $item['uri']]); continue; }