Commit Graph
1270 Commits
Author SHA1 Message Date
Brent Simmons 7f0b492003 Remove obsolete AccountSettingsDatabase fallback and unused fetchFromSettingsFileIfNeeded. 2026-12-03 09:34:43 -08:00
Brent Simmons e255f8638e Update DateParser comments to describe current behavior. 2026-12-03 09:02:04 -08:00
Brent Simmons f07651132a Read numeric offset after GMT or UTC as in GMT-0800 (JavaScript date strings, for instance). 2026-12-03 08:59:56 -08:00
Brent Simmons ec7ea1713f Fix bug where the year could be taken as the day. 2026-12-03 08:55:20 -08:00
Brent Simmons c51c13a3d4 Merge pull request #5588 from naitik0009/fix/5469-pubdate-month-first
Fix pubDate strings that parsed as January 1970 (#5469)
2026-12-03 08:52:08 -08:00
Brent Simmons 69acad4d06 Add special case system for placeholder images, so they’re not treated as thumbnails or as image to show in the article.
CI / SwiftLint (push) Canceled after 0s
CI / macOS Tests (push) Canceled after 0s
CI / iOS Simulator Tests (push) Canceled after 0s
2026-12-02 21:56:19 -08:00
Naitik Kumar Rauniyar 46aa0e351e Fix pubDate strings that parsed as January 1970 (#5469)
parsePubDate read dates in RFC 822 order (day, month, year). Feeds that
put the month first, such as "Nov 25, 2026" or "Fri, Nov 27 2026 02:07:36 PM",
found no month after the day and no year, so they fell back to January 1970.
New articles from those feeds were dated 1970 and marked read on arrival.

- Parse month-first dates when a month name precedes the day and the day
  is followed by the year.
- Apply AM/PM to the hour, and read a numeric offset attached to the time
  ("00:00:00-0800").
- Return nil instead of a 1970 date when the month or year is missing, so
  the existing dateArrived fallback is used.

Written with LLM assistance; reviewed and tested by me.
2026-11-28 18:54:50 +01:00
Brent Simmons bcc25bb769 Merge branch 'bug/icloud-drive-not-required' 2026-11-27 22:02:39 -08:00
Brent Simmons 2c50ffcc3c Convert Miniflux tests to Swift tests and remove some unneeded ones.
CI / SwiftLint (push) Canceled after 0s
CI / macOS Tests (push) Canceled after 0s
CI / iOS Simulator Tests (push) Canceled after 0s
2026-11-26 12:45:32 -08:00
Brent Simmons a0f5da6105 Remove unneeded feed-deletion when deleting Miniflux category, since the server will delete the feeds in the category. 2026-11-26 10:40:18 -08:00
Brent Simmons 3e945d8437 Edit comment. Deleting a Miniflux category on the server deletes feeds in the category. 2026-11-26 10:39:02 -08:00
Brent Simmons 7bc59a62db Replace semicolons in log messages with commas. 2026-11-26 10:35:12 -08:00
Brent Simmons 1fef87278c Use structs instead of enums for namespaces, per house style. 2026-11-26 10:34:45 -08:00
Brent Simmons b70d041e22 Wrap Miniflux restoreFolder error in AccountError. 2026-11-26 10:33:47 -08:00
Brent Simmons a69cd307e0 Log each chunk of Miniflux missing articles in the Activity Log. 2026-11-26 10:32:34 -08:00
Brent Simmons 3037d0e17d Use account.logRefreshPage for Miniflux article pages. Remove unused import. 2026-11-26 10:31:23 -08:00
Brent Simmons f17ea72f3c Send statuses, after a mark-articles, in the background so the thread doesn’t wait on the sync call. 2026-11-26 10:28:30 -08:00
Brent Simmons 314aef5948 Prevent a failed status send from blocking fetching new articles. 2026-11-26 10:26:52 -08:00
Brent Simmons 773b69e8f4 Rename refreshArticlesPage. Remove unused import. 2026-11-26 10:11:06 -08:00
Brent Simmons 0fb64c2b66 Complete page header. 2026-11-26 10:10:30 -08:00
Brent Simmons b773583910 Edit comments, mostly to make more concise. 2026-11-25 14:50:03 -08:00
Brent Simmons 2665fff3d8 Replace several status send blocks with a loop. 2026-11-25 14:47:20 -08:00
Brent Simmons 0d0fefb60c Add restored Miniflux folder to tree before restoring its feeds, so the feeds end up in the folder. 2026-11-25 14:43:46 -08:00
Brent Simmons 046f712d0c Avoid failing the refresh when a single missing Miniflux entry returns HTTP error. 2026-11-25 14:41:54 -08:00
Brent Simmons 52e566033f Send changed_after whenever last article fetch completed, so failed initial sync doesn’t redownload three months of articles. 2026-11-25 14:39:39 -08:00
Brent Simmons ea09af7f95 Split one-line defers to multiple lines, matching our preferred style. 2026-11-25 14:12:47 -08:00
Brent Simmons 6c41b0329e Clean up Miniflux tests. Remove force-unwraps. Clean up various things in defer. Add messages for XCTFails. 2026-11-25 14:11:37 -08:00
Brent Simmons 6708b77f7b Shorten comment. 2026-11-25 11:19:44 -08:00
Brent Simmons 9676770aa5 Use Int (instead of Int64) for Miniflux IDs. 2026-11-25 11:18:56 -08:00
Brent Simmons bbce2df017 Remove optional flatMap from Miniflux models. Make enclosure decoding match other models. Drop unused MinifluxUser.id. Drop unused MinifluxCategory Hashable conformance. 2026-11-25 11:06:24 -08:00
Brent Simmons fa89d0e00e Create and use some Miniflux constants. 2026-11-25 11:01:32 -08:00
Brent Simmons 394819fbd7 Use account.postSyncError. Edit some comments. 2026-11-25 10:59:10 -08:00
Brent Simmons 0eeeda129f Create and use some constants for Miniflux. 2026-11-25 10:55:22 -08:00
Brent Simmons 18ee99603e Make one-line defers and guards use multiple lines (per NetNewsWire style preferences). 2026-11-25 10:53:19 -08:00
Brent Simmons 35b10714f2 Shorten comment on Miniflux starred fallback for older servers. Note that it’s not atomic. 2026-11-25 09:50:37 -08:00
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 0c0d33d100 Use RSWeb’s response validation when creating Miniflux feed. 2026-11-25 09:42:39 -08:00
Brent Simmons 3e77dbb536 Use fetch with Miniflux server version check so it honors suspend. 2026-11-25 09:38:35 -08:00
Brent Simmons 9b7f582acf Remove a now-unused version of duplicateServiceAccount. 2026-11-25 09:37:14 -08:00
Brent Simmons 05c8f3130a Normalize endpoints in duplicateServiceAccount to improve duplicate detection. 2026-11-25 09:34:49 -08:00
Brent Simmons b6b448e5ca Reset Miniflux sync statuses at launch, as the other accounts do. 2026-11-25 09:07:38 -08:00
Brent Simmons 9dac55c726 Report whether Miniflux statuses changed (instead of whether entries were fetched). 2026-11-24 22:38:12 -08:00
Brent Simmons 61ad984faf Create new folder instead of matching by name — name is not the ID. 2026-11-24 22:33:23 -08:00
Brent Simmons 6f967490a6 Remove feed from folders it does not belong in — put it only where the server says. 2026-11-24 22:25:10 -08:00
Brent Simmons d1bc0c46cb Put new Miniflux feed in category created in. Remove top level copies of feeds on refresh. 2026-11-24 22:21:42 -08:00
Brent Simmons 9c7bd14a42 Report failure when undoing a Miniflux folder delete can’t re-create its category. Don’t create category with empty title. 2026-11-24 22:16:06 -08:00
Brent Simmons 16b06639ed Continue sending Miniflux status groups when one send fails. Report the last error. 2026-11-24 22:10:41 -08:00
Brent Simmons 56eab87567 Limit Miniflux refresh after OPML import to three months (not the entire history). 2026-11-24 22:03:48 -08:00
Brent Simmons 84116c55f1 Limit the Miniflux missing article backfill per refresh. Save fetched entries even when a later request fails. Delete server-deleted statuses per chunk. 2026-11-24 13:36:33 -08:00