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