Commit Graph
1090 Commits
Author SHA1 Message Date
Brent Simmons 4ed99b52da Fix status syncing bug with > 999 sync statuses in the database (hitting SQLite limit). 2026-08-30 20:28:19 -07:00
Brent Simmons 4b6c797e9c Add SyncDatabase tests. 2026-08-30 20:26:55 -07:00
Brent Simmons 93c1cd95b7 Add tests to Feedbin and Feedly for not deleting feed names. 2026-08-16 14:47:37 -07:00
Brent Simmons 9412559ad0 Fix bug where feeds could lose their names and become Untitled. 2026-08-16 14:44:40 -07:00
Brent Simmons 74a54faac2 Remove superfluous blank lines. 2026-08-16 14:43:06 -07:00
Brent Simmons 593369ea09 Add public init for the sake of testing. 2026-08-16 14:42:40 -07:00
Brent Simmons 8d6c29e1ba Wait for connectivity on feed refreshes, to fix the case where foregrounding does a refresh and network isn’t ready yet and all requests fail. 2026-08-11 11:45:08 -07:00
Brent Simmons 16817b278c Repair database status rows that differ from their in-memory status. 2026-08-11 11:23:39 -07:00
Brent Simmons d8bdbe0678 Convert from wide versions of & < > generated by FreshRSS back to regular versions. Fixes #5143. 2026-08-08 12:24:39 -07:00
Brent Simmons 056fa5ff76 Release a URL's download callbacks before calling them, so a callback that starts a new download of the same URL isn't silently dropped. 2026-08-06 11:50:47 -07:00
Brent Simmons e2fe6a1798 Stop caching failed downloads such as timeouts. 2026-08-06 11:48:46 -07:00
Brent Simmons e5dda50233 Limit post-refresh activity cleanup to .refreshFeedContent so it doesn’t complete other activities not related to the refresh. 2026-08-06 11:45:01 -07:00
Brent Simmons 0adebfb86b Give each API caller its own URLSession so canceling one account's requests can't cancel another account's. 2026-08-03 15:27:40 -07:00
Brent Simmons c40496c308 Remove the redundant Feedly status-code guards — the transport already validates, so they could only reject successful responses like a 204. 2026-08-03 15:21:39 -07:00
Brent Simmons ad2c15232f Read the Feedly pending-statuses set right before computing status diffs so an edit made mid-refresh isn't briefly reverted. 2026-08-03 15:18:20 -07:00
Brent Simmons 0f1a00fc56 Throw on Feedly sync-database read failures instead of returning zeros. 2026-08-03 15:17:15 -07:00
Brent Simmons eb09940e6b Count only new articles in the Feedly download summary instead of every entry returned. 2026-08-03 15:14:28 -07:00
Brent Simmons d292e1023b Treat a Feedly consent-page denial as cancellation, close the cancel-before-start race, and honor the operation's account type. 2026-08-03 15:12:54 -07:00
Brent Simmons 1f735f1798 Compare Feedly feed names against the parsed title so RTL and untitled feeds stop rewriting their names every sync. 2026-08-03 15:09:48 -07:00
Brent Simmons 2ff432cfa6 Undo the destination add when a Feedly feed move fails halfway, instead of leaving the feed in both folders. 2026-08-03 15:06:30 -07:00
Brent Simmons 92f36349b9 Recreate the Feedly collection when restoring a deleted folder, so undo actually restores it. 2026-08-03 15:04:51 -07:00
Brent Simmons 3e0b4b0c17 Match Feedly collections to folders by external ID first, so a rename race can't drop the folder and same-label collections stay distinct. 2026-08-03 15:03:14 -07:00
Brent Simmons c61c1f5e12 Stop decoding the Feedly logout and OPML-import response bodies, and remove Keychain tokens even when the logout request fails. 2026-08-03 14:57:35 -07:00
Brent Simmons d53f4eb025 Accept an unchanged token after Feedly reauthorization — requiring a new value failed valid retries. 2026-08-03 14:45:36 -07:00
Brent Simmons 3fcdee6825 Make the OAuth token response scope optional — the spec allows omitting it and a Feedly refresh response without it would fail decoding and permanently break sync. 2026-08-03 14:44:12 -07:00
Brent Simmons 60edd4b96e Coalesce concurrent Feedly token refreshes into one in-flight task so parallel 401s can't spam the token endpoint. 2026-08-03 14:43:05 -07:00
Brent Simmons fb62efd6d7 Avoid posting duplicate rate-limit errors. 2026-08-03 14:41:11 -07:00
Brent Simmons 3ca28d2e04 Notify the rate limiter. 2026-08-03 14:37:11 -07:00
Brent Simmons f2c3e2f380 Stop the Feedly status refresh at a rate-limit error instead of starting the starred walk into an active ban. 2026-08-03 14:35:48 -07:00
Brent Simmons 7a4ab6e718 Paginate the Feedly per-feed backfill so feeds with more than one page of new items don't silently lose the rest. 2026-08-03 14:34:30 -07:00
Brent Simmons e0e9394eee Advance the Feedly fetch watermark only when the ID walk completes, back-dated to cover clock skew. 2026-08-03 14:31:54 -07:00
Brent Simmons 678932798a Don't mark read or unstar from a Feedly stream walk that stopped at the page cap — a truncated walk isn't authoritative about absence. 2026-08-03 14:28:50 -07:00
Brent Simmons 3ebf9a1d0a Skip the Feedly timer status sync while refreshAll is running, and stop it from resetting the shared refresh progress. 2026-08-03 14:26:04 -07:00
Brent Simmons f5845b9d12 Coalesce overlapping Feedly status sends into one in-flight task and drop the racy bulk selection reset. 2026-08-03 14:19:24 -07:00
Brent Simmons 7067b8ce7b Merge. 2026-08-03 14:10:59 -07:00
Brent Simmons 6a37683b3c Compose the Feedly refreshAll Activity Log message from the shared part builders instead of duplicating them, and add tests. 2026-08-03 13:51:50 -07:00
Brent Simmons fafd5bd805 Extract the duplicated Feedly and ReaderAPI rate-limit machinery into a shared SyncRateLimiter type. 2026-08-03 13:48:35 -07:00
Brent Simmons 696fcd3da5 Replace the three copied logRefreshPage implementations with one shared Account method. 2026-08-03 13:33:48 -07:00
Brent Simmons 468e17456b Replace the five copied postSyncError implementations and Account's identical postCredentialError with one shared Account method. 2026-08-03 13:29:30 -07:00
Brent Simmons 9693b9b4a3 Delete dead Feedly code: the expired sandbox environment, unused OAuth error types, the unused client state property, and a stale TODO. 2026-08-03 13:06:14 -07:00
Brent Simmons 33c1be6c76 Harden Feedly OAuth sign-in and token refresh with state validation, a stricter callback check, and better error reporting. 2026-08-03 11:59:41 -07:00
Brent Simmons 6ba22e4948 Use the published date Feedly reports for articles, clamped to the crawl date, instead of dating a new feed's whole archive with the crawl date. 2026-08-03 11:30:27 -07:00
Brent Simmons 79664c5e37 Ignore a Feedly refreshAll while one is already running. 2026-08-03 11:20:33 -07:00
Brent Simmons a1c08b4b1c Bound the Feedly per-feed backfill by last-check date and a smaller count instead of fetching up to 1000 full entries per feed. 2026-08-03 11:18:58 -07:00
Brent Simmons 9b3644e50c Reconcile Feedly starred articles per refresh instead of every status sync — the starred stream walk has no date bound and stars still send promptly. 2026-08-03 11:17:08 -07:00
Brent Simmons a477cee59b Reuse the Feedly stream IDs from ingestion as the updated-articles set instead of walking global.all twice per refresh. 2026-08-03 11:14:51 -07:00
Brent Simmons 2441263c6e Mark only the rows actually being sent as selected, so a limited batch can’t delete a queued status it never sent. 2026-08-03 11:13:39 -07:00
Brent Simmons 5f6f7970ae Percent-encode plus signs in Feedly query values, which Feedly otherwise decodes as spaces, breaking stream requests and pagination. 2026-08-03 11:10:54 -07:00
Brent Simmons f2fa313912 Clear Feedly progress info before adding tasks, so refreshInProgress is true from the start of a refresh. 2026-08-03 11:09:17 -07:00
Brent Simmons 272d73499e Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire 2026-08-03 11:08:04 -07:00