mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 17:36:19 +01:00
25 lines
443 B
Swift
25 lines
443 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 Data
|
|
|
|
extension ParsedItem {
|
|
|
|
var articleID: String {
|
|
get {
|
|
if let s = syncServiceID {
|
|
return s
|
|
}
|
|
// Must be same calculation as for Article.
|
|
return Article.calculatedArticleID(feedID: feedURL, uniqueID: uniqueID)
|
|
}
|
|
}
|
|
}
|