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 PostReplyMessageRequest(
Guid ContentId,
Guid SubjectId,
Guid ParentId,
string Message);
@@ -26,7 +26,7 @@ public sealed class PostReplyMessage(
await context.Messages.AddAsync(
new Message
{
ContentId = req.ContentId,
SubjectId = req.SubjectId,
ParentId = req.ParentId,
CreatedBy = User.GetUserId(),
Value = req.Message