diff --git a/Modules/Package.resolved b/Modules/Package.resolved index 80be5211a6a1..7a0b36bc43b4 100644 --- a/Modules/Package.resolved +++ b/Modules/Package.resolved @@ -327,8 +327,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/automattic/wordpress-rs", "state" : { - "revision" : "68a8ab594578f2b3e058460e5a944176af20399b", - "version" : "0.9.1" + "revision" : "ab374f1da6eb2e762ca9c179d615cf33a34a6c6a", + "version" : "0.11.0" } }, { diff --git a/Modules/Package.swift b/Modules/Package.swift index 2bfa44660cb2..e6ff532938ad 100644 --- a/Modules/Package.swift +++ b/Modules/Package.swift @@ -66,7 +66,7 @@ let package = Package( .package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "0.20.0-alpha.2"), .package( url: "https://github.com/automattic/wordpress-rs", - exact: "0.9.1" + exact: "0.11.0" ), .package( url: "https://github.com/Automattic/color-studio", diff --git a/Modules/Sources/WordPressComments/Models/CommentDetail.swift b/Modules/Sources/WordPressComments/Models/CommentDetail.swift index 2dfdc1abac20..5ec3bb22140b 100644 --- a/Modules/Sources/WordPressComments/Models/CommentDetail.swift +++ b/Modules/Sources/WordPressComments/Models/CommentDetail.swift @@ -27,7 +27,7 @@ struct CommentDetail: Equatable, Sendable { self.init( id: comment.id, authorName: comment.authorName, - avatarURL: comment.authorAvatarUrls.avatarURL, + avatarURL: comment.authorAvatarUrls?.avatarURL, authorURL: comment.authorUrl, authorEmail: nil, authorIP: nil, @@ -46,7 +46,7 @@ struct CommentDetail: Equatable, Sendable { self.init( id: comment.id, authorName: comment.authorName, - avatarURL: comment.authorAvatarUrls.avatarURL, + avatarURL: comment.authorAvatarUrls?.avatarURL, authorURL: comment.authorUrl, authorEmail: comment.authorEmail, authorIP: comment.authorIp, diff --git a/Modules/Sources/WordPressComments/Models/CommentListItem.swift b/Modules/Sources/WordPressComments/Models/CommentListItem.swift index 1b559d698ed8..0096a7be2a73 100644 --- a/Modules/Sources/WordPressComments/Models/CommentListItem.swift +++ b/Modules/Sources/WordPressComments/Models/CommentListItem.swift @@ -47,7 +47,7 @@ struct CommentListItem: Identifiable, Equatable, Sendable { init(comment: CommentWithViewContext) { id = comment.id authorName = comment.authorName.nonEmptyString() ?? Strings.anonymousAuthor - avatarURL = comment.authorAvatarUrls.avatarURL + avatarURL = comment.authorAvatarUrls?.avatarURL postID = comment.post snippet = Self.snippet(fromHTML: comment.content.rendered) date = comment.dateGmt diff --git a/Package.resolved b/Package.resolved index 406b2c01b346..f6553b98adc7 100644 --- a/Package.resolved +++ b/Package.resolved @@ -327,8 +327,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/automattic/wordpress-rs", "state" : { - "revision" : "68a8ab594578f2b3e058460e5a944176af20399b", - "version" : "0.9.1" + "revision" : "ab374f1da6eb2e762ca9c179d615cf33a34a6c6a", + "version" : "0.11.0" } }, { diff --git a/WordPress/Classes/Services/CommentServiceRemoteCoreRESTAPI.swift b/WordPress/Classes/Services/CommentServiceRemoteCoreRESTAPI.swift index 1221661d0572..8c48054a8db6 100644 --- a/WordPress/Classes/Services/CommentServiceRemoteCoreRESTAPI.swift +++ b/WordPress/Classes/Services/CommentServiceRemoteCoreRESTAPI.swift @@ -141,7 +141,7 @@ private extension RemoteComment { self.authorID = NSNumber(value: comment.author) self.author = comment.authorName self.authorUrl = comment.authorUrl - self.authorAvatarURL = comment.authorAvatarUrls.avatarURL()?.absoluteString + self.authorAvatarURL = comment.authorAvatarUrls?.avatarURL()?.absoluteString self.content = comment.content.rendered self.date = comment.dateGmt self.link = comment.link @@ -169,7 +169,7 @@ private extension RemoteComment { self.author = comment.authorName self.authorEmail = comment.authorEmail self.authorUrl = comment.authorUrl - self.authorAvatarURL = comment.authorAvatarUrls.avatarURL()?.absoluteString + self.authorAvatarURL = comment.authorAvatarUrls?.avatarURL()?.absoluteString self.authorIP = comment.authorIp self.content = comment.content.raw self.rawContent = comment.content.raw