Skip to content

Commit

Permalink
fix: post.ID and make the property called ID
Browse files Browse the repository at this point in the history
  • Loading branch information
devahmedshendy committed Jan 22, 2024
1 parent 0d18e19 commit 324fb80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/SyndiKit/Formats/Media/Wordpress/WordPressPost.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct WordPressPost {
public let pingStatus: PingStatus
public let parentID: Int?
public let menuOrder: Int?
public let id: Int
public let ID: Int
public let isSticky: Bool
public let postDate: Date
public let postDateGMT: Date?
Expand Down Expand Up @@ -98,7 +98,7 @@ public struct WordPressPost {
self.pingStatus = pingStatus
self.parentID = parentID
self.menuOrder = menuOrder
self.id = id
self.ID = id
self.isSticky = isSticky
self.postDate = postDate
self.postDateGMT = postDateGMT
Expand Down Expand Up @@ -181,7 +181,7 @@ extension WordPressPost {
self.pingStatus = pingStatus.value
self.parentID = parentID
self.menuOrder = menuOrder
self.id = id
self.ID = id
self.isSticky = (isSticky != 0)
self.postDate = postDate
postDateGMT = item.wpPostDateGMT
Expand All @@ -192,11 +192,11 @@ extension WordPressPost {

extension WordPressPost: Hashable {
public static func == (lhs: WordPressPost, rhs: WordPressPost) -> Bool {
lhs.id == rhs.id
lhs.ID == rhs.ID
}

public func hash(into hasher: inout Hasher) {
hasher.combine(id)
hasher.combine(ID)
}
}

Expand Down

0 comments on commit 324fb80

Please sign in to comment.