From e59beb46708a61bdb1c4af19edb2ec23eb535579 Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 25 Mar 2024 13:46:38 +0100 Subject: [PATCH] server/embed: only serialize post data we actually use --- server/szurubooru/api/embed_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/api/embed_api.py b/server/szurubooru/api/embed_api.py index c83a8a50..d2a7b577 100644 --- a/server/szurubooru/api/embed_api.py +++ b/server/szurubooru/api/embed_api.py @@ -40,7 +40,7 @@ def _serialize_post( ctx: rest.Context, post: Optional[model.Post] ) -> rest.Response: return posts.serialize_post( - post, ctx.user, options=serialization.get_serialization_options(ctx) + post, ctx.user, options=["thumbnailUrl", "user"] )