NetNewsWire/Frameworks/ArticlesDatabase/Extensions/ParsedArticle+Database.swift

23 lines
430 B
Swift

//
// ParsedArticle+Database.swift
// Database
//
// Created by Brent Simmons on 9/18/17.
// Copyright © 2017 Ranchero Software. All rights reserved.
//
import Foundation
import RSParser
import Articles
extension ParsedItem {
var articleID: String {
if let s = syncServiceID {
return s
}
// Must be same calculation as for Article.
return Article.calculatedArticleID(feedID: feedURL, uniqueID: uniqueID)
}
}