From 95bc2680c61463f7cf8e475b671d424f485c739d Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 24 Nov 2026 11:00:42 -0800 Subject: [PATCH] Skip Miniflux entries with an unknown starred state in the starred-toggle fallback for older servers, instead of toggling them blindly. --- .../Account/Sources/Account/Miniflux/MinifluxAPICaller.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Account/Sources/Account/Miniflux/MinifluxAPICaller.swift b/Modules/Account/Sources/Account/Miniflux/MinifluxAPICaller.swift index 29ecee5e4..8574c6e32 100644 --- a/Modules/Account/Sources/Account/Miniflux/MinifluxAPICaller.swift +++ b/Modules/Account/Sources/Account/Miniflux/MinifluxAPICaller.swift @@ -370,8 +370,9 @@ private extension MinifluxAPICaller { guard let entry = try await retrieveEntry(entryID: entryID) else { continue // Gone server-side; nothing to update. } - guard entry.starred != starred else { - continue // Already correct — toggling would flip it the wrong way. + // Unknown state can’t be toggled safely, and the correct state needs no toggle. + guard let entryStarred = entry.starred, entryStarred != starred else { + continue } try await toggleBookmark(entryID: entryID) }