From 433dea94e01e3a49150471d76540ffc30aeb26fd Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 25 Jun 2023 15:24:03 -0700 Subject: [PATCH] Fix feedRequiresRedditAPI function. --- Account/Sources/Account/AccountManager.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Account/Sources/Account/AccountManager.swift b/Account/Sources/Account/AccountManager.swift index 55bd3aead..64a9f0e00 100644 --- a/Account/Sources/Account/AccountManager.swift +++ b/Account/Sources/Account/AccountManager.swift @@ -393,8 +393,8 @@ public final class AccountManager: UnreadCountProvider { /// /// More info: [Pathogen-David's Guide to RSS and Reddit!](https://www.reddit.com/r/pathogendavid/comments/tv8m9/pathogendavids_guide_to_rss_and_reddit/) private func feedRequiresRedditAPI(_ feed: WebFeed) -> Bool { - if let components = URLComponents(string: webfeed.url), let host = components.host { - return host.hasSuffix("reddit.com") && !path.hasSuffix(".rss") + if let components = URLComponents(string: feed.url), let host = components.host { + return host.hasSuffix("reddit.com") && !components.path.hasSuffix(".rss") } return false }