Skip to content

Commit

Permalink
Fix another pool loading regression in 728573a
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroBrine1st committed Jan 10, 2024
1 parent ded82eb commit 0b97a39
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ data class PoolSearchOptions(
if (postIds.isEmpty()) return emptyList()

// order:id for "normal" pools, i.e. first post in pool is first pool in result - no reverse required
val posts = api.getPosts(tags = "id:${postIds.joinToString(",")} order:id")
.getOrThrow()
.posts
val posts =
api.getPosts(tags = "id:${postIds.joinToString(",") { it.value.toString() }} order:id")
.getOrThrow()
.posts

assert(posts.size == postIds.size) { "Expected ${postIds.size} posts, got ${posts.size}" }

Expand Down

0 comments on commit 0b97a39

Please sign in to comment.