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

Commit 908d96a

Browse files
authored
Fix features images in Reader (#825)
2 parents 77b3f5e + 87e2a09 commit 908d96a

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ let package = Package(
1111
targets: [
1212
.binaryTarget(
1313
name: "WordPressKit",
14-
url: "https://github.com/user-attachments/files/18203178/WordPressKit.zip",
15-
checksum: "ceb5ac66cda7b207f123319d6c04c338b90b7657344e7f395f86d36ff9e61f4a"
14+
url: "https://github.com/user-attachments/files/18209758/WordPressKit.zip",
15+
checksum: "2c9fa7ed59864c01c8af7dc0b5dd8cbc26558799487fad3ab9e128cfbd8dae64"
1616
),
1717
]
1818
)

Sources/WordPressKit/Models/RemoteReaderPost.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -494,16 +494,6 @@ - (NSString *)featuredImageFromPostDictionary:(NSDictionary *)dict
494494
featuredImage = [self userSpecifiedFeaturedImageFromPostDictionary:dict];
495495
}
496496

497-
// If that's not present look for an image in featured media
498-
if ([featuredImage length] == 0) {
499-
featuredImage = [self featuredMediaImageFromPostDictionary:dict];
500-
}
501-
502-
// As a last resource lets look for a suitable image in the post content
503-
if ([featuredImage length] == 0) {
504-
featuredImage = [self suitableImageFromPostContent:dict];
505-
}
506-
507497
featuredImage = [self sanitizeFeaturedImageString:featuredImage];
508498

509499
return featuredImage;

0 commit comments

Comments
 (0)