Skip to content

Commit

Permalink
Add RemoteReaderTopic.displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jan 10, 2025
1 parent 908d96a commit a623d1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
]
)
4 changes: 3 additions & 1 deletion Sources/WordPressKit/Models/RemoteReaderTopic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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
Expand Down

0 comments on commit a623d1d

Please sign in to comment.