Merge pull request #4059 from ByteHamster/fix-embedded-picture

Fixed not displaying embedded pictures
This commit is contained in:
H. Lehmann 2020-04-16 17:08:43 +02:00 committed by GitHub
commit c8790336b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -411,11 +411,12 @@ public class FeedItem extends FeedComponent implements ShownotesProvider, ImageR
} }
/** /**
* Returns the image of this item or the image of the feed if this item does * Returns the image of this item, as specified in the feed.
* not have its own image. * To load the image that can be displayed to the user, use {@link #getImageLocation},
* which also considers embedded pictures or the feed picture if no other picture is present.
*/ */
public String getImageUrl() { public String getImageUrl() {
return (imageUrl != null) ? imageUrl : feed.getImageUrl(); return imageUrl;
} }
public void setImageUrl(String imageUrl) { public void setImageUrl(String imageUrl) {