This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Sources/WordPressKit/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ let package = Package(
1111 targets: [
1212 . binaryTarget(
1313 name: " WordPressKit " ,
14- url: " https://github.com/user-attachments/files/19034102 /WordPressKit.zip " ,
15- checksum: " 1d845ec9b6b22ae82f309dc7909333b952ca28a523b8e483230f4d3884ef0a0f "
14+ url: " https://github.com/user-attachments/files/19034191 /WordPressKit.zip " ,
15+ checksum: " 34f108cba86b5e4334d1c9af79946dbb8b665e270bdd14bc8f7bc0ba7a898583 "
1616 ) ,
1717 ]
1818)
Original file line number Diff line number Diff line change 1818@property (nonatomic ) BOOL commentsOpen;
1919@property (nonatomic , strong ) NSString *featuredImage;
2020@property (nonatomic , strong ) NSString *autoSuggestedFeaturedImage;
21+ @property (nonatomic , strong ) NSString *suitableImageFromPostContent;
2122@property (nonatomic , strong ) NSNumber *feedID;
2223@property (nonatomic , strong ) NSNumber *feedItemID;
2324@property (nonatomic , strong ) NSString *globalID;
Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ - (instancetype)initWithDictionary:(NSDictionary *)dict;
109109 self.content = [self postContentFromPostDictionary: dict];
110110 self.date_created_gmt = [self stringOrEmptyString: [dict stringForKey: PostRESTKeyDate]];
111111 self.featuredImage = [self featuredImageFromPostDictionary: dict];
112- self.autoSuggestedFeaturedImage = [self featuredMediaImageFromPostDictionary: dict];
112+ self.autoSuggestedFeaturedImage = [self sanitizeFeaturedImageString: [self featuredMediaImageFromPostDictionary: dict]];
113+ self.suitableImageFromPostContent = [self sanitizeFeaturedImageString: [self suitableImageFromPostContent: dict]];
113114 self.feedID = [dict numberForKey: PostRESTKeyFeedID];
114115 self.feedItemID = [dict numberForKey: PostRESTKeyFeedItemID];
115116 self.globalID = [self stringOrEmptyString: [dict stringForKey: PostRESTKeyGlobalID]];
You can’t perform that action at this time.
0 commit comments