mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 00:31:14 +00:00
Skip Miniflux entries with an unknown starred state in the starred-toggle fallback for older servers, instead of toggling them blindly.
This commit is contained in:
1 parent
333e79211d
commit
95bc2680c6
1 file changed
+3
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user