Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit a623d1d

Browse files
committed
Add RemoteReaderTopic.displayName
1 parent 908d96a commit a623d1d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ let package = Package(
1111
targets: [
1212
.binaryTarget(
1313
name: "WordPressKit",
14-
url: "https://github.com/user-attachments/files/18209758/WordPressKit.zip",
15-
checksum: "2c9fa7ed59864c01c8af7dc0b5dd8cbc26558799487fad3ab9e128cfbd8dae64"
14+
url: "https://github.com/user-attachments/files/18378391/WordPressKit.zip",
15+
checksum: "afba972825502b7479ee7dd6bdbe88cda630d19c95f372b85ffc760b9ba60aac"
1616
),
1717
]
1818
)

Sources/WordPressKit/Models/RemoteReaderTopic.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Foundation
88
public var path: String?
99
public var slug: String?
1010
public var title: String?
11+
public var displayName: String?
1112
public var topicDescription: String?
1213
public var topicID: NSNumber
1314
public var type: String?
@@ -25,7 +26,8 @@ import Foundation
2526
owner = topicDict.string(forKey: topicDictionaryOwnerKey)
2627
path = topicDict.string(forKey: topicDictionaryURLKey)?.lowercased()
2728
slug = topicDict.string(forKey: topicDictionarySlugKey)
28-
title = topicDict.string(forKey: topicDictionaryDisplayNameKey) ?? topicDict.string(forKey: topicDictionaryTitleKey)
29+
title = topicDict.string(forKey: topicDictionaryTitleKey)
30+
displayName = topicDict.string(forKey: topicDictionaryDisplayNameKey)
2931
type = topicDict.string(forKey: topicDictionaryTypeKey)
3032
organizationID = topicDict.number(forKeyPath: topicDictionaryOrganizationIDKey) ?? 0
3133
isSubscribed = subscribed

0 commit comments

Comments
 (0)