2017-09-18 22:00:35 -07:00
|
|
|
//
|
|
|
|
// ParsedArticle+Database.swift
|
2019-07-08 22:20:57 -07:00
|
|
|
// NetNewsWire
|
2017-09-18 22:00:35 -07:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 9/18/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import RSParser
|
2018-07-23 18:29:08 -07:00
|
|
|
import Articles
|
2017-09-18 22:00:35 -07:00
|
|
|
|
|
|
|
extension ParsedItem {
|
|
|
|
|
|
|
|
var articleID: String {
|
2018-02-14 13:14:25 -08:00
|
|
|
if let s = syncServiceID {
|
|
|
|
return s
|
2017-09-18 22:00:35 -07:00
|
|
|
}
|
2018-02-14 13:14:25 -08:00
|
|
|
// Must be same calculation as for Article.
|
|
|
|
return Article.calculatedArticleID(feedID: feedURL, uniqueID: uniqueID)
|
2017-09-18 22:00:35 -07:00
|
|
|
}
|
|
|
|
}
|