diff --git a/CHANGELOG.md b/CHANGELOG.md index 98e6f8a8b..51bda88b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Fixed - Fixed issue where custom tabs would not respect default browser when opening links - Fixed issue where initial app startup takes a long time to load (503 errors) +- Fixed issue where image dimensions were being fetched regardless of post view types (card/compact) ## 0.2.6 - 2023-11-22 ### Fixed diff --git a/lib/post/utils/post.dart b/lib/post/utils/post.dart index 1facb4e77..20c26ca27 100644 --- a/lib/post/utils/post.dart +++ b/lib/post/utils/post.dart @@ -112,7 +112,7 @@ Future savePost(int postId, bool save) async { Future> parsePostViews(List postViews) async { SharedPreferences prefs = (await UserPreferences.instance).sharedPreferences; - bool fetchImageDimensions = prefs.getBool(LocalSettings.showPostFullHeightImages.name) ?? false; + bool fetchImageDimensions = prefs.getBool(LocalSettings.showPostFullHeightImages.name) == true && prefs.getBool(LocalSettings.useCompactView.name) != true; bool edgeToEdgeImages = prefs.getBool(LocalSettings.showPostEdgeToEdgeImages.name) ?? false; bool tabletMode = prefs.getBool(LocalSettings.useTabletMode.name) ?? false; bool hideNsfwPosts = prefs.getBool(LocalSettings.hideNsfwPosts.name) ?? false;