mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make progress on related objects.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
//
|
||||
// ParsedItem+Database.swift
|
||||
// Database
|
||||
//
|
||||
// Created by Brent Simmons on 9/2/17.
|
||||
// Copyright © 2017 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import RSParser
|
||||
import Data
|
||||
|
||||
extension ParsedItem {
|
||||
|
||||
func databaseIdentifierWithFeed(_ feed: Feed) -> String {
|
||||
|
||||
if let identifier = syncServiceID {
|
||||
return identifier
|
||||
}
|
||||
|
||||
// Must be, and is, the same calculation as in Article.init.
|
||||
return databaseIDWithString("\(feed.feedID) \(uniqueID)")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user