Commit Graph
67 Commits
Author SHA1 Message Date
Brent Simmons 9bd35e070a Move normalizedMinifluxEndpointURL from Account extension to Miniflux struct and rename it to drop Miniflux in the function name. 2026-11-25 09:47:53 -08:00
Brent Simmons a44a2c4a6e Add shared Miniflux endpoint URL normalizer that fails on URL with no host. 2026-11-25 09:44:57 -08:00
Brent Simmons 05c8f3130a Normalize endpoints in duplicateServiceAccount to improve duplicate detection. 2026-11-25 09:34:49 -08:00
Brent Simmons 333e79211d Page Miniflux entry IDs by entry ID on older servers, and rescan on newer servers when the total changes, so that entries read on another device during a scan aren’t skipped and marked read locally. 2026-11-24 10:57:01 -08:00
Brent Simmons 027a01e2f3 Make the Keychain key for Miniflux use host, port, and path, so that a single host with multiple Miniflux installations (family and work, for instance) would allow for separate credentials in NetNewsWire. 2026-11-24 10:18:58 -08:00
Dave MarquardandIngmar Stein ba63d58712 Add native Miniflux account type and sync support
Adds Miniflux as a first-class account type alongside Feedbin, Feedly,
NewsBlur, and Reader API accounts, on both macOS and iOS.

Refreshes are incremental: the changed_after parameter means read and
starred status ride along with the entries in a single pass instead of
needing separate status scans. Articles missing locally are backfilled by
ID via GET /v1/entries/{id}; a 404 means the entry is gone server-side, so
its statuses are deleted and it is not requested again on every refresh.
Starred changes go out as idempotent batch updates.

Requires Miniflux 2.0.49 or newer. The server version is detected at
runtime via GET /v1/version and persisted in AccountSettings. Servers
older than 2.3.2 have no /v1/entries/ids and no batch starred updates, so
those paths fall back transparently to paged /v1/entries and per-entry
bookmark toggles.

Both HTTP Basic and API-token authentication are supported, selectable in
the account sheet on either platform. Entered URLs are normalized (scheme
added, trailing slash and /v1 suffix stripped), and adding a second
account for a server that already has one is rejected.

Tests cover folder sync, model decoding, version parsing, the pre-2.3.2
fallback paths, and duplicate-endpoint detection, with JSON fixtures for
the API responses.

The runtime version detection and the duplicate-endpoint check were
informed by IngmarStein's independent Miniflux implementation in #5335.

Written with help from Claude Code.

Co-Authored-By: Ingmar Stein <490610+IngmarStein@users.noreply.github.com>
2026-11-22 07:06:11 -08:00
Brent Simmons d3d52a72ef Parse enclosures and articles images from Reader API accounts. 2026-10-24 10:53:14 -07:00
Brent Simmons 8b6adbc8f8 Get article image from Feedly. 2026-10-23 20:58:01 -07:00
Brent Simmons 7858ea8b61 Parse and store Feedbin image, thumbnail, and enclosure. 2026-10-23 20:54:40 -07:00
Brent Simmons 8514379352 Rename uses of the word "ingest." Fixes #5467. 2026-10-02 20:30:48 -07:00
Brent Simmons 6e600420e3 Throw sync database errors. 2026-09-16 15:50:37 -07:00
Brent Simmons e88ce51214 Move location of test folders. 2026-09-16 10:08:49 -07:00
Brent Simmons 3039b3b6c9 Use different keychain usernames. 2026-09-16 10:08:41 -07:00
Brent Simmons 9d65e6c822 Make sure a rejected Feedly token is retried just once. 2026-09-16 09:17:42 -07:00
Brent Simmons a76f59c389 Remove test account credentials from Keychain when deleting account. 2026-09-16 09:16:44 -07:00
Brent Simmons 177f6ae143 Make sure a failed Feedbin status send still allows article refreshing. 2026-09-15 10:50:40 -07:00
Brent Simmons fded0bfab2 Use http method as part of the match for test responses. 2026-09-15 10:50:03 -07:00
Brent Simmons 4b41d7f8a9 Make each web service test get its own test responses. 2026-09-13 10:36:04 -07:00
Brent Simmons 1dff40fa4a Do separate TestingURLProtocol responses per-test. 2026-09-09 08:44:18 -07:00
Brent Simmons 6829887c2f Continue sending Feedbin statuses even after one group fails. Add tests. 2026-09-07 09:56:00 -07:00
Brent Simmons 0c913d99e3 Fix bug creating test account folder. 2026-09-07 09:50:29 -07:00
Brent Simmons 1df4cf7d3a Parse Reader API hex item IDs as unsigned so high-bit IDs no longer overflow to an unsendable ID. 2026-09-01 11:41:53 -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 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 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 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 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 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 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 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 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 f8d2dcc404 Return non-optional Data from the webservice send methods. 2026-06-15 08:13:57 -07:00
Brent Simmons d7344fc771 Replace Transport with URLSession. Create internal unit testing support rather than passing around a Transport or URLSession. 2026-06-14 16:31:59 -07:00
Brent Simmons b5e31f1bca Refactor Feedly to use async/await instead of operations. Fixes #5050. 2026-05-29 21:12:21 -07:00
Brent Simmons 2c323b5e92 Deleted unneeded file that blocked Swift Testing adoption. 2026-04-24 10:26:23 -07:00
Brent Simmons 28bb8f7a25 Use import os rather than import os.log. 2026-03-23 11:23:15 -07:00
Brent Simmons c38cfbb9be Import API URL properly from account settings. Add tests. 2026-03-14 10:37:20 -07:00
Brent Simmons 1ed84ac4e6 Add and use new CredentialsError cases. 2026-03-10 20:11:31 -07:00
Brent Simmons 58a5ad90fe Make AccountSettings UserDefaults-backed instead of a small SQLite database. 2026-03-10 15:52:54 -07:00
Brent Simmons 2e92347559 Add tests for account settings and feed settings importers. 2026-03-08 19:43:25 -07:00
Brent Simmons 61c49848ec Use AccountSettings instead of AccountMetadata. 2026-03-06 21:41:08 -08:00
Brent Simmons 9030c15b60 Fix build errors. 2026-01-14 17:34:04 -08:00
Brent Simmons ff9b6a3dbe Do various code cleanups. 2025-11-17 21:56:42 -08:00
Brent Simmons 4fa0b65d98 Convert from default MainActor isolation to unspecified default isolation. 2025-11-17 21:53:40 -08:00
Brent Simmons 6f3886112b Fix concurrency issues. 2025-11-17 17:23:39 -08:00
Brent Simmons 412e076399 Make nonisolated and Sendable. 2025-11-17 11:52:03 -08:00
Brent Simmons f9c4718ccf Mark as MainActor. 2025-11-17 11:51:34 -08:00
Brent Simmons 0205acda9f Convert to async/await. 2025-11-16 20:40:00 -08:00