server/embed: only serialize post data we actually use

This commit is contained in:
Eva 2024-03-25 13:46:38 +01:00
parent 922499cb64
commit e59beb4670

View file

@ -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"]
)