Fix Gallery posts not showing preview image.

This commit is contained in:
Alex Ning 2020-09-28 19:50:14 +08:00
parent ec7636e313
commit f5320c1e60

View File

@ -422,6 +422,7 @@ public class ParsePost {
if (!gallery.isEmpty()) { if (!gallery.isEmpty()) {
post.setPostType(Post.GALLERY_TYPE); post.setPostType(Post.GALLERY_TYPE);
post.setGallery(gallery); post.setGallery(gallery);
post.setPreviews(previews);
} }
} else if (post.getPostType() == Post.LINK_TYPE) { } else if (post.getPostType() == Post.LINK_TYPE) {
Uri uri = Uri.parse(url); Uri uri = Uri.parse(url);