From dde52f1009a0c6544f47fcf034e0bafc4037901e Mon Sep 17 00:00:00 2001 From: Deka Jello Date: Thu, 18 Apr 2024 10:26:59 -0500 Subject: [PATCH] Fix pool post serializer --- server/szurubooru/func/posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index 21136773..069d4009 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -1008,10 +1008,10 @@ def serialize_pool_posts_around(ctx: rest.Context, around: List[PoolPostsAround] return [ { "pool": pools.serialize_micro_pool(entry.pool), - "firstPost": serialize_micro_post(ctx.user, entry.first_post), - "prevPost": serialize_micro_post(ctx.user, entry.prev_post), - "nextPost": serialize_micro_post(ctx.user, entry.next_post), - "lastPost": serialize_micro_post(ctx.user, entry.last_post) + "firstPost": serialize_micro_post(entry.first_post, ctx.user), + "prevPost": serialize_micro_post(entry.prev_post, ctx.user), + "nextPost": serialize_micro_post(entry.next_post, ctx.user), + "lastPost": serialize_micro_post(entry.last_post, ctx.user) } for entry in sort_pool_posts_around(around) ]