diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e662091..bd63bd85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Fix bug where newest posts tab actually showed hottest posts instead + ## [1.15.0] - 2022-12-20 ### Changed diff --git a/android/src/main/kotlin/dev/msfjarvis/claw/android/viewmodel/ClawViewModel.kt b/android/src/main/kotlin/dev/msfjarvis/claw/android/viewmodel/ClawViewModel.kt index ead6b8ed..54526a89 100644 --- a/android/src/main/kotlin/dev/msfjarvis/claw/android/viewmodel/ClawViewModel.kt +++ b/android/src/main/kotlin/dev/msfjarvis/claw/android/viewmodel/ClawViewModel.kt @@ -45,7 +45,7 @@ constructor( } private val newestPostsPager = Pager(PagingConfig(pageSize = PAGE_SIZE), initialKey = STARTING_PAGE_INDEX) { - pagingSourceFactory.create(api::getHottestPosts) + pagingSourceFactory.create(api::getNewestPosts) } val hottestPosts