Add forwarding, friend controls, and benefits

Add message forwarding and reply lookup, friend removal and blocking endpoints, and database-backed Govor+ privileges with customizable profile tags. Include migrations, integration tests, and updated API and operations documentation.
This commit is contained in:
Artemy
2026-10-31 18:29:40 +07:00
parent a3401ceedf
commit 632ac04b56
78 changed files with 5284 additions and 720 deletions
+8 -1
View File
@@ -15,6 +15,10 @@ public class Message
public List<MessageView> MessageViews { get; set; } = new List<MessageView>();
public Guid? ReplyToMessageId { get; set; }
// Attribution is a snapshot: deleting the source must not delete the forwarded message.
public Guid? ForwardedFromMessageId { get; set; }
public Guid? ForwardedFromUserId { get; set; }
public DateTime? ForwardedFromSentAt { get; set; }
public long ReactionsVersion { get; set; }
public override bool Equals(object? obj)
@@ -29,7 +33,10 @@ public class Message
SentAt == other.SentAt &&
IsEdited == other.IsEdited &&
EditedAt == other.EditedAt &&
ReplyToMessageId == other.ReplyToMessageId;
ReplyToMessageId == other.ReplyToMessageId &&
ForwardedFromMessageId == other.ForwardedFromMessageId &&
ForwardedFromUserId == other.ForwardedFromUserId &&
ForwardedFromSentAt == other.ForwardedFromSentAt;
}
}