diff --git a/Package.swift b/Package.swift index 89a26215..31b198bb 100644 --- a/Package.swift +++ b/Package.swift @@ -11,8 +11,8 @@ let package = Package( targets: [ .binaryTarget( name: "WordPressKit", - url: "https://github.com/user-attachments/files/18209758/WordPressKit.zip", - checksum: "2c9fa7ed59864c01c8af7dc0b5dd8cbc26558799487fad3ab9e128cfbd8dae64" + url: "https://github.com/user-attachments/files/18378391/WordPressKit.zip", + checksum: "afba972825502b7479ee7dd6bdbe88cda630d19c95f372b85ffc760b9ba60aac" ), ] ) diff --git a/Sources/WordPressKit/Models/RemoteReaderTopic.swift b/Sources/WordPressKit/Models/RemoteReaderTopic.swift index 3df828ee..bcc09333 100644 --- a/Sources/WordPressKit/Models/RemoteReaderTopic.swift +++ b/Sources/WordPressKit/Models/RemoteReaderTopic.swift @@ -8,6 +8,7 @@ import Foundation public var path: String? public var slug: String? public var title: String? + public var displayName: String? public var topicDescription: String? public var topicID: NSNumber public var type: String? @@ -25,7 +26,8 @@ import Foundation owner = topicDict.string(forKey: topicDictionaryOwnerKey) path = topicDict.string(forKey: topicDictionaryURLKey)?.lowercased() slug = topicDict.string(forKey: topicDictionarySlugKey) - title = topicDict.string(forKey: topicDictionaryDisplayNameKey) ?? topicDict.string(forKey: topicDictionaryTitleKey) + title = topicDict.string(forKey: topicDictionaryTitleKey) + displayName = topicDict.string(forKey: topicDictionaryDisplayNameKey) type = topicDict.string(forKey: topicDictionaryTypeKey) organizationID = topicDict.number(forKeyPath: topicDictionaryOrganizationIDKey) ?? 0 isSubscribed = subscribed