diff options
author | Andrew Dolgov <[email protected]> | 2021-02-13 23:08:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-13 23:08:20 +0300 |
commit | 43d8a1f2fffc3dd551ce80dc506dad79a65ca052 (patch) | |
tree | 7d8462835ed54e4a2e65abaf5eac5308147a66cf /classes/pref/feeds.php | |
parent | 103d30ad3f92ed03156fee400801d9a38f946b34 (diff) |
remove getinactivefeeds (duplicate functionality)
Diffstat (limited to 'classes/pref/feeds.php')
-rwxr-xr-x | classes/pref/feeds.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 2649d58a1..b9967e77f 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1652,25 +1652,6 @@ class Pref_Feeds extends Handler_Protected { return $c; } - function getinactivefeeds() { - if (DB_TYPE == "pgsql") { - $interval_qpart = "NOW() - INTERVAL '3 months'"; - } else { - $interval_qpart = "DATE_SUB(NOW(), INTERVAL 3 MONTH)"; - } - - $sth = $this->pdo->prepare("SELECT COUNT(id) AS num_inactive FROM ttrss_feeds WHERE - (SELECT MAX(updated) FROM ttrss_entries, ttrss_user_entries WHERE - ttrss_entries.id = ref_id AND - ttrss_user_entries.feed_id = ttrss_feeds.id) < $interval_qpart AND - ttrss_feeds.owner_uid = ?"); - $sth->execute([$_SESSION['uid']]); - - if ($row = $sth->fetch()) { - print (int)$row["num_inactive"]; - } - } - static function subscribe_to_feed_url() { $url_path = get_self_url_prefix() . "/public.php?op=subscribe&feed_url=%s"; |