Commit Graph
495 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 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 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 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 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 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 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
Brent Simmons ca5c220988 Send queued article statuses for Inoreader on every status sync — only status downloading stays throttled for rate limits. Fixes #4476. 2026-08-02 11:43:30 -07:00
Brent Simmons 35745b9ba7 Merge branch '7.1.3-pre' of https://github.com/Ranchero-Software/NetNewsWire into 7.1.3-pre 2026-08-02 10:55:33 -07:00
Brent Simmons 4b7737e762 Repair a feed's stored feedID when a sync service reports a different authoritative ID. 2026-08-02 10:55:22 -07:00
Brent Simmons 6d259827f0 Use a constant logging system name instead of getting it from Bundle. 2026-08-02 10:33:23 -07:00
Brent Simmons f4723bc32d Remove a Feedly feed locally when the server rejects the delete with 400 or 404, since otherwise the feed can never be deleted. Fixes #4172. 2026-08-02 09:50:21 -07:00
Brent Simmons 49e1975fa0 iCloud: keep a feed visible at the top level instead of hiding it when its destination folder isn't known yet, so moved feeds don't disappear. Fixes #5124. 2026-08-01 21:48:40 -07:00
Brent Simmons 6d0e8f4906 Feedly: refresh a few individual feeds each sync to backfill articles possibly missing from the global stream. Fixes #4635, #4745, #4864. 2026-08-01 18:07:57 -07:00
Brent Simmons 7809b713de Fix bug where decoding errors during syncing would display as theme import errors. Also: show account name and type in sync error messages. Fixes #3849. 2026-08-01 09:41:04 -07:00