The MessageSystem is based on Subject instead of Content (just semantics)

This commit is contained in:
Jonathan Bourdon
2024-07-06 22:36:22 -04:00
parent 256fa3df91
commit ca94dba08d
6 changed files with 88 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ using Hutopy.Web.Messages.Data;
namespace Hutopy.Web.Messages.Handlers;
public record PostMessageRequest(
Guid ContentId,
Guid SubjectId,
string Message);
public class PostMessage(
@@ -25,7 +25,7 @@ public class PostMessage(
{
await context.Messages.AddAsync(
new Message {
ContentId = req.ContentId,
SubjectId = req.SubjectId,
CreatedBy = User.GetUserId(),
Value = req.Message },
ct);