From ae63e2076487f1d5a1dfb9f09b15928ebe3c1736 Mon Sep 17 00:00:00 2001 From: scria1000 <91804886+scria1000@users.noreply.github.com> Date: Mon, 13 Dec 2021 14:04:35 +0000 Subject: Fix link previews not showing (#587) Fix link previews not showing --- .../java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java b/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java index 318bdc96..fa672901 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java @@ -314,20 +314,20 @@ public interface RedditAPI { ListenableFuture> getBestPostsListenableFuture(@Path("sortType") String sortType, @Query("t") String sortTime, @Query("after") String lastItem, @HeaderMap Map headers); - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") + @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25&always_show_media=1") ListenableFuture> getSubredditBestPostsOauthListenableFuture(@Path("subredditName") String subredditName, @Path("sortType") String sortType, @Query("after") String lastItem, @HeaderMap Map headers); - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") + @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25&always_show_media=1") ListenableFuture> getSubredditBestPostsOauthListenableFuture(@Path("subredditName") String subredditName, @Path("sortType") String sortType, @Query("t") String sortTime, @Query("after") String lastItem, @HeaderMap Map headers); - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") + @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25&always_show_media=1") ListenableFuture> getSubredditBestPostsListenableFuture(@Path("subredditName") String subredditName, @Path("sortType") String sortType, @Query("after") String lastItem); - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") + @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25&always_show_media=1") ListenableFuture> getSubredditBestPostsListenableFuture(@Path("subredditName") String subredditName, @Path("sortType") String sortType, @Query("t") String sortTime, @Query("after") String lastItem); -- cgit v1.2.3