Commit Graph
543 Commits
Author SHA1 Message Date
Brent Simmons 95bc2680c6 Skip Miniflux entries with an unknown starred state in the starred-toggle fallback for older servers, instead of toggling them blindly. 2026-11-24 11:00:42 -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 7f7a675833 Use the same string — "Notify about new articles" — on both platforms. Delete some no-longer-used Reddit code. 2026-11-18 17:44:15 -08:00
Brent Simmons 519c5598e0 Skip refreshing Reddit feeds (in local and iCloud accounts) since Reddit no longer offers RSS feeds. 2026-11-18 17:38:34 -08:00
Brent Simmons 7214b44dc3 Work around Apple crash in iOS 27.2 beta. Don’t use <= or >= with Dates. 2026-11-06 10:34:36 -08:00
Brent Simmons 70cbd39834 Use the proper baseURL in the thumbnail finder. 2026-10-28 11:30:24 -07:00
Brent Simmons 473a94bb06 Store and display attachments in feed order. 2026-10-24 11:58:06 -07:00
Brent Simmons d3d52a72ef Parse enclosures and articles images from Reader API accounts. 2026-10-24 10:53:14 -07:00
Brent Simmons c9d52b859c Get image and thumbnail from NewsBlur. 2026-10-23 21:00:57 -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 2c17fb77c9 Add thumbnail storage. 2026-10-23 12:11:33 -07:00
Brent Simmons 73009b389c Make sure OPML gets saved on setting feed title. 2026-10-23 10:46:50 -07:00
Brent Simmons df20c6cc1c Add width, height, and medium properties to ParsedAttachment. Make JSON Feed mime_type optional. 2026-10-22 21:05:06 -07:00
Brent Simmons a746736bf1 Add Refresh and Show/Hide Sidebar commands to status bar gear menu. 2026-10-21 20:35:05 -07:00
Brent Simmons a4bc00fad2 Switch from OSAllocatedUnfairLock to Mutex. 2026-10-21 19:13:13 -07:00
Brent Simmons 94032d95fe Make setting last refresh date for accounts more consistent. 2026-10-20 12:01:02 -07:00
Brent Simmons 8514379352 Rename uses of the word "ingest." Fixes #5467. 2026-10-02 20:30:48 -07:00
Brent Simmons 1013e9359b Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire 2026-09-20 21:27:01 -07:00
Brent Simmons 04e1a054a0 Run one full unread count query per account instead of once per feed. 2026-09-18 20:16:57 -07:00
Brent Simmons ce8b31c449 Create better error log message on Feedly sync database failure. 2026-09-16 15:53:45 -07:00
Brent Simmons 6e600420e3 Throw sync database errors. 2026-09-16 15:50:37 -07:00
Brent Simmons a9e14ab84b Make rs_SQLValueListWithPlaceholders non-nullable. 2026-09-16 15:12:39 -07:00
Brent Simmons 47f62e5eec Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire 2026-09-16 14:26:33 -07:00
Brent Simmons d3da14e5b8 Stop reauthorizing a Feedly token that was rejected. 2026-09-16 09:01:24 -07:00
Brent Simmons 40227e312c Use url.absoluteString consistently in urlToFeedDictionary so that lookups work as expected. 2026-09-15 17:36:16 -07:00
Brent Simmons 1e6b8924c2 Distinguish between failure and an empty queue. 2026-09-15 15:12:31 -07:00
Brent Simmons 3c2c52bb17 Send statuses before sending article content, so an article content failure won’t affect status syncing. 2026-09-15 14:55:54 -07:00
Brent Simmons 68629eca9a Fetch articles even if there’s an error sending article statuses. 2026-09-14 09:49:04 -07:00
Brent Simmons 3a5a6b5508 Make syncDatabase available to tests. 2026-09-13 10:34:54 -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 6c66c52a89 Return true or false from refreshAll so callers can know if the refreshAll ran. 2026-09-05 09:41:38 -07:00
Brent Simmons 49dbebf677 Include up to 500 characters of http error response body in error log. 2026-09-04 16:36:39 -07:00
Brent Simmons 86e69b5899 Await push-triggered syncs instead of doing fire-and-forget. 2026-09-04 10:57:11 -07:00
Brent Simmons 95529c5f47 Fix possible data race. 2026-09-03 10:30:37 -07:00
Brent Simmons 8abba351e5 Fix potential hangs in CloudKit syncing. 2026-09-02 10:00:19 -07:00
Brent Simmons f178c6a9b5 Remove dry-run/debugging code no longer needed. 2026-09-02 09:47:19 -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 614b091aa1 Fix build error. 2026-09-01 11:26:04 -07:00
Brent Simmons 10505b872d Rename storeConditionalGet to storeConditionalGetIfNeeded, since it doesn’t always store conditional GET (it’s only on 200 response). 2026-09-01 11:10:28 -07:00
Brent Simmons 491df567a6 Fix potential Feedbin sync bug by storing conditional GET info after, not before, updating model. 2026-09-01 11:08:51 -07:00
Brent Simmons 5e33560da4 Fix potential sync bugs (Feedbin, ReaderAPI) by storing conditional GET info only on 200 and only after updating the model, not before. 2026-09-01 10:56:17 -07:00
Brent Simmons 8e0007233d Keep feed at top level if its folder is missing locally (with Feedbin and Reader API syncing). 2026-09-01 09:34:04 -07:00
Brent Simmons 2b46ee65cc Replace return with continue when syncing folder relationships so we don’t skip some. 2026-09-01 09:14:04 -07:00
Brent Simmons 2f6d5053e0 Use en_US locale for parsing dates from servers. 2026-09-01 09:04:12 -07:00
Brent Simmons 7e0f3d6d18 Added saveAllIfNeeded to write OPML files to disk only if dirty. 2026-09-01 08:58:16 -07:00
Brent Simmons 4544328042 Avoid a potential hang by calling the previous completion before setting a new one. 2026-08-31 07:17:27 -07:00
Brent Simmons 9412559ad0 Fix bug where feeds could lose their names and become Untitled. 2026-08-16 14:44:40 -07:00