mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix a Feedbin subscriptionID going out of sync.
If, for example, a user deleted a feed and recreated it on the server without a sync in between, the subscription ID for the feed would update on the server, but remain unchanged locally. If the user then wanted to delete or rename the feed they'd get a 404 error.
This commit is contained in:
@@ -648,6 +648,7 @@ private extension FeedbinAccountDelegate {
|
||||
if let feed = account.idToFeedDictionary[subFeedId] {
|
||||
feed.name = subscription.name
|
||||
feed.homePageURL = subscription.homePageURL
|
||||
feed.subscriptionID = String(subscription.subscriptionID)
|
||||
} else {
|
||||
let feed = account.createFeed(with: subscription.name, url: subscription.url, feedID: subFeedId, homePageURL: subscription.homePageURL)
|
||||
feed.subscriptionID = String(subscription.subscriptionID)
|
||||
|
||||
Reference in New Issue
Block a user