Refactor RelationshipsController: merge relationship rows for accurate status representation and enhance gifting functionality in AdminController and Gift component

This commit is contained in:
Alexa
2026-06-04 15:55:59 +03:00
parent 4d14ede3dc
commit e2f169cdea
6 changed files with 198 additions and 75 deletions
@@ -9,6 +9,12 @@ namespace DorkNet.Server.Data.Entities;
/// </summary>
public enum RelationshipStatus
{
/// <summary>No friendship/block — the row exists only to hold the
/// requester's own favorite/mute/ignore preference about the target.
/// The actual relationship status (if any) lives on the paired row in
/// the other direction; the read path merges the two.</summary>
None = 0,
/// <summary>Mutual friend (both directions accepted).</summary>
Friend = 1,