wip comments

This commit is contained in:
john 2025-08-10 19:57:47 +02:00
parent cbf67bf5f1
commit 4c69c6d30d
14 changed files with 151 additions and 21 deletions

View file

@ -24,11 +24,9 @@ internal class CreatePostCommandHandler(BlogContext context)
media.Width,
media.Height
))
.ToList()
)
{
IsPublic = request.IsPublic is true
};
.ToList(),
request.IsPublic is true
);
await context.AddAsync(post, cancellationToken);
@ -39,7 +37,8 @@ internal class CreatePostCommandHandler(BlogContext context)
post.PostedOn,
new PostAuthorDto(post.AuthorId, request.CurrentUser.Username),
[],
post.PossibleReactions
post.PossibleReactions,
[]
);
}
}