Skip to content

Commit 5579deb

Browse files
committed
Fix the issue when the WebSite og:image format is not supported by iOS, for this case, using the SDWebIamge decoding system instead
1 parent 1bf818e commit 5579deb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SDWebImageLinkPlugin/Classes/SDImageLinkLoader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ - (void)fetchImageWithMetadata:(LPLinkMetadata *)metadata operation:(SDImageLink
118118
}
119119
imageProvider = iconProvider;
120120
}
121-
if (requestData) {
121+
if (requestData || ![imageProvider canLoadObjectOfClass:UIImage.class]) {
122122
// Request the image data and decode
123123
[self fetchImageDataWithProvider:imageProvider metadata:metadata operation:operation url:url options:options context:context progress:progressBlock completed:completedBlock];
124124
} else {

0 commit comments

Comments
 (0)