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

Commit 397f0d6

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)