Commit Graph
84 Commits
Author SHA1 Message Date
Brent Simmons a16cda2665 Cache responses for just over 10 minutes, so that feeds can’t be refreshed too often. Be kind to feed publishers! Fix #4700. 2025-10-16 14:14:03 -07:00
Brent Simmons 2cd88eca96 Set feed.conditionalGetInfo only if it’s different. 2025-10-15 13:57:13 -07:00
Brent Simmons 634bc21c24 Drop conditional GET info every 8 days, to handle buggy servers that always respond with a 304 when *any* conditional GET info is sent. Also: add some more logging. 2025-10-15 10:48:58 -07:00
Brent Simmons 00376a91b6 Add conditionalGetInfoDate to keep track of when conditional GET info is set. 2025-10-15 10:48:26 -07:00
Brent Simmons 18d239c946 Cache 4xx responses for some hours (53, currently) — instead of for the duration of the current run of the app. This fixes one possible cause of feeds not updating. 2025-10-14 22:24:42 -07:00
Brent Simmons 212d9b40be Resolve link URLs. Handle Daring Fireball’s sometimes-crossed permalinks and external links. 2025-10-14 18:50:17 -07:00
Brent Simmons 31eb5b5bfd Add baseline for performance tests. 2025-10-14 18:49:19 -07:00
Brent Simmons 7314f9a7f3 Lightly improve isValidURLString. 2025-10-14 16:17:13 -07:00
Brent Simmons ea771e9b27 Add code and tests to parse relative home page URLs in Atom feeds. 2025-10-14 11:23:37 -07:00
Brent Simmons 71b4472e53 Add RSMarkdown module which imports swift-markdown and cmark-gfm external modules. Create function to generate HTML from Markdown. 2025-10-07 11:53:07 -07:00
Brent Simmons 207fe6649f Skip refreshing in local and Feedly accounts if running unit tests. 2025-10-06 10:59:25 -07:00
Brent Simmons 22ef2f849f Add logging to isRunningUnitTests (one log per run, not per call). 2025-10-06 10:59:07 -07:00
Brent Simmons 4e9f29d54b Add check to see if running unit tests. This will allow us to skip certain work (like syncing) when running unit tests. Also useful later for self-mocking. 2025-10-06 10:25:17 -07:00
Brent Simmons e0a3ba69e1 Use correct container hierarchy to fix AppleScript access to articles in feeds in folders. Fix #4412. 2025-10-04 16:56:59 -07:00
Brent Simmons b784abbec1 Create and use pngData() method for Mac to get data from image as PNG instead of TIFF — use less memory. 2025-10-04 08:27:30 -07:00
Brent Simmons 8916c3024f Find suitable images in one pass instead of three. Add debug logging. 2025-10-03 20:01:45 -07:00
Brent Simmons 6e6177d087 Avoid a runtime console warning about invalid parameter by guarding that maxPixelSize > 0 and count of images > 0. 2025-10-03 14:35:53 -07:00
Brent Simmons 6351ebe343 Add debug logging to ArticlesDatabase. 2025-10-03 14:18:06 -07:00
Brent Simmons 6e12b70a93 Replace os_log with Logger. 2025-10-02 22:02:51 -07:00
Brent Simmons ec1a971fba Use the shared cloudKitLogger. 2025-10-02 22:02:41 -07:00
Brent Simmons 21eab80e0f Replace os_log with Logger. 2025-10-02 21:46:16 -07:00
Brent Simmons 1a635bfe02 Replace os_log with Logger. 2025-10-02 21:42:25 -07:00
Brent Simmons ad5c78c71f Replace os_log with Logger. 2025-10-02 21:40:09 -07:00
Brent Simmons 6779c18892 Replace OSLog with Logger. 2025-10-02 21:13:00 -07:00
Brent Simmons 8e295ec4cb Replace OSLog with Logger. 2025-10-02 21:03:20 -07:00
Brent Simmons e41e076569 Replace OSLog with Logger. 2025-10-02 21:00:44 -07:00
Brent Simmons 68f3e231a4 Replace OSLog with Logger. 2025-10-02 20:54:23 -07:00
Brent Simmons 72a8b3627e Replace OSLog with Logger. 2025-10-02 20:49:58 -07:00
Brent Simmons b6c6e987ef Replace OSLog with Logger. 2025-10-02 20:27:15 -07:00
Brent Simmons 66bc751501 Make DatabaseError a LocalizedError. 2025-10-02 20:26:03 -07:00
Brent Simmons cd1575b07b Add RSCore scheme. 2025-10-02 20:25:48 -07:00
Brent Simmons 0a0e04441f Add shared cloudKitLogger. 2025-10-02 20:25:40 -07:00
Brent Simmons b945a5dbed Remove unused OSLog. 2025-10-02 11:41:57 -07:00
Brent Simmons caf35b4bbd Remove unused OSLog. 2025-10-02 11:41:20 -07:00
Brent Simmons 7ebfa05446 Replace OSLog with Logger. 2025-10-02 11:36:58 -07:00
Brent Simmons 4d5662b030 Create and use a shared Feedbin Logger. 2025-10-02 10:57:44 -07:00
Brent Simmons 47cbc4d764 Use shared Feedly.logger. 2025-10-02 10:39:28 -07:00
Brent Simmons 4bdca9d81b Create common Logger for Feedly code. 2025-10-02 09:36:38 -07:00
Brent Simmons 1e3ddff597 Replace OSLog with Logger. 2025-10-02 09:12:53 -07:00
Brent Simmons f7f903ab5a Use "iCloud" prefix in logger messages, to make them more explicit in Xcode Console (when showing Category is turned off). 2025-10-01 10:26:50 -07:00
Brent Simmons d504d2e8ad Replace OSLog with Logger. Delete some extraneous whitespace. 2025-10-01 10:25:59 -07:00
Brent Simmons 22020c64fe Replace OSLog with Logger. Delete some extraneous whitespace. 2025-10-01 10:14:46 -07:00
Brent Simmons 08272c6a12 Add assertion and guard statement about empty array. 2025-10-01 09:40:42 -07:00
Brent Simmons b819fa460d Add function to write multiple URLs to the clipboard. Do some minor formatting cleanups. 2025-10-01 09:34:45 -07:00
Brent Simmons a3ab1f00ba Add implementation and test for supporting a root author element in Atom feeds. Fix #2797. 2025-09-30 10:32:19 -07:00
Brent Simmons b8b50ec2ca Add hasiCloudAccount computed var. In createAccount, return the existing iCloud account instead of trying to create a new account. 2025-09-22 18:10:29 -07:00
Brent Simmons 4b7ea6d920 Mark classes as final when they can be, to communicate intent (don’t subclass these). Fix #4751. 2025-09-16 10:21:29 -07:00
Brent Simmons 810cc657ae Use os_log since there isn’t a self.logger yet. 2025-09-15 11:23:54 -07:00
Maurice Parker 4e6c100804 Continue processing if there is a Feedbin delete error. Fixes #3611 2025-09-15 11:15:03 -07:00
Brent Simmons 66c86aa096 Score a URL ending in index.xml as likely a feed, in the feed finder. De-emphasize json due to false positives (JSON that isn’t JSON Feed). Fix #4136. 2025-09-15 10:26:27 -07:00