def _serialize(ctx, tag): return tags.serialize_tag( tag, options=util.get_serialization_options(ctx))
def _serialize(ctx, user, **kwargs): return users.serialize_user( user, ctx.user, options=util.get_serialization_options(ctx), **kwargs)
def _serialize(ctx, category): return tag_categories.serialize_category( category, options=util.get_serialization_options(ctx))
def _serialize_post(ctx, post): return posts.serialize_post( post, ctx.user, options=util.get_serialization_options(ctx))
def _serialize(ctx, comment, **kwargs): return comments.serialize_comment( comment, ctx.user, options=util.get_serialization_options(ctx), **kwargs)