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:
Tom Grimwood-Taylor 2019-06-06 10:23:14 +01:00
parent cd85e52fdd
commit 3c1b84dd73
1 changed files with 1 additions and 0 deletions

View File

@ -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)