Fix pool post serializer

This commit is contained in:
Deka Jello 2024-04-18 10:26:59 -05:00
parent 85f012b02f
commit dde52f1009

View file

@ -1008,10 +1008,10 @@ def serialize_pool_posts_around(ctx: rest.Context, around: List[PoolPostsAround]
return [ return [
{ {
"pool": pools.serialize_micro_pool(entry.pool), "pool": pools.serialize_micro_pool(entry.pool),
"firstPost": serialize_micro_post(ctx.user, entry.first_post), "firstPost": serialize_micro_post(entry.first_post, ctx.user),
"prevPost": serialize_micro_post(ctx.user, entry.prev_post), "prevPost": serialize_micro_post(entry.prev_post, ctx.user),
"nextPost": serialize_micro_post(ctx.user, entry.next_post), "nextPost": serialize_micro_post(entry.next_post, ctx.user),
"lastPost": serialize_micro_post(ctx.user, entry.last_post) "lastPost": serialize_micro_post(entry.last_post, ctx.user)
} }
for entry in sort_pool_posts_around(around) for entry in sort_pool_posts_around(around)
] ]