Commit Graph
863 Commits
Author SHA1 Message Date
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
Brent Simmons 13aedbad29 Clear stale in-flight status selections at launch, so statuses queued when the app was killed get sent. 2026-08-03 11:07:55 -07:00
Brent Simmons 5c01af6f0a Treat statuses selected for an in-flight send as still pending, so a concurrent status refresh can't revert unsent local changes. 2026-08-03 11:06:07 -07:00
Brent Simmons 145af40159 Don't let an in-flight status send hide a pending change from the refresh that would revert it. Fixes #4280. 2026-08-03 11:05:06 -07:00
Brent Simmons cea508470a Keep a Feedly token refresh failure from recursing, and stop using a fake 403 for a missing refresh token. Fixes #3949. 2026-08-03 10:50:28 -07:00
Brent Simmons 58c3f86f3f Cap Feedly article downloads per sync, downloading updated articles first and the rest on later syncs. Fixes #3949. 2026-08-03 10:47:53 -07:00
Brent Simmons b10fd39553 Bound Feedly's stream ID walks by date and page count instead of walking the entire history every sync. Fixes #3949. 2026-08-03 10:43:19 -07:00
Brent Simmons e4a98b0a48 Stop decoding the Feedly markers response, so a successful mark can't be recorded as a failure and requeued. Fixes #3779. 2026-08-03 10:39:16 -07:00
Brent Simmons 47a6069d7c Drop queued Feedly mark-as-read statuses for articles older than the 31-day marker limit, per Feedly's guidance. Fixes #3779. 2026-08-03 10:24:48 -07:00
Brent Simmons 5f0e905099 Delete Feedly status sends from the queue per successful chunk, and keep a failed send from blocking the rest of the refresh. Fixes #3779. 2026-08-03 10:15:01 -07:00
Brent Simmons 52e78b29cf Log a skipped refresh in the Activity Log when a Reader API account is rate limited. 2026-08-03 10:10:38 -07:00
Brent Simmons 1c5493d20d Pause Feedly syncing when the server reports rate limiting with a 429 or 403, honoring Retry-After. Fixes #3949. 2026-08-03 10:08:42 -07:00
Brent Simmons a2b1ea7e5e Prefer a feed's declared icon over a previously discovered home-page icon. Fixes #5376. 2026-08-02 22:34:17 -07:00
Brent Simmons cc19be05a6 Skip the home-page icon fallback while a feed's declared icon is still downloading. Fixes #5376. 2026-08-02 22:32:08 -07:00
Brent Simmons 17eb62e850 Check iCloud account status before syncing — refresh feeds without alerts while the account is unavailable, and resume syncing automatically when it comes back. Fixes #4115. 2026-08-02 18:01:51 -07:00
Brent Simmons 2135a52bff Read feeds even after a CloudKit error. 2026-08-02 17:58:13 -07:00
Brent Simmons bf78f30bdf Show a helpful message when iCloud sync is paused for Terms and Conditions acceptance. Fixes #4115. 2026-08-02 17:46:26 -07:00
Brent Simmons f50bcd4ffc Fix folder creation for Reader API accounts by keeping new folders until a feed makes them real on the server. Fixes #3834. 2026-08-02 17:27:53 -07:00
Brent Simmons e69cb835aa Use conditional GET for Reader API tag and subscription lists, and skip the whole status reconcile — not just the status downloads — when near the Inoreader API quota. 2026-08-02 13:41:45 -07:00
Brent Simmons 2cd0e1781a Skip the full status downloads when Inoreader reports Zone 1 API usage near its daily limit, using its rate-limit headers. 2026-08-02 13:34:56 -07:00
Brent Simmons fe285e2170 Pause ReaderAPI syncing when the server returns 429 Too Many Requests, honoring Retry-After, instead of burning quota. 2026-08-02 13:29:45 -07:00
Brent Simmons 91b3f441ea Merge branch '7.1.3-pre' of https://github.com/Ranchero-Software/NetNewsWire into 7.1.3-pre 2026-08-02 13:08:56 -07:00
Brent Simmons 5a7eb65ca2 Don't let a status refresh revert pending unsent read and starred changes in Feedbin, Feedly, and NewsBlur accounts. 2026-08-02 13:08:50 -07:00
Brent Simmons caba227eb0 Create a special case for the Relay blog relay.fm/blog for the feed finder. Fixes #5299. 2026-08-02 13:03:19 -07:00
Brent Simmons 7a74bbb4f4 Post real errors to the Error Log from Reader API status syncing, and keep an unread fetch failure from skipping the starred fetch. 2026-08-02 12:54:59 -07:00
Brent Simmons 0833627eee Fix Reader API item ID encoding in the article contents request — it was unpadded and wrong for negative IDs. 2026-08-02 12:51:51 -07:00
Brent Simmons e5171cbb0b Fix bug where sending an article's read status could delete its queued starred status. 2026-08-02 12:48:25 -07:00
Brent Simmons 41395fb9b7 Don't let a Reader API status refresh revert pending unsent read and starred changes. 2026-08-02 11:46:02 -07:00