mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-18 13:24:59 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user