pleroma: rename Status.Account to Author

This commit is contained in:
uwaa 2024-12-30 01:15:13 +00:00
parent c606e4ed02
commit 2b294f7137

View file

@ -12,7 +12,7 @@ public class Status : ASObject
/// The account that authored this status /// The account that authored this status
/// </summary> /// </summary>
[JsonPropertyName("account")] [JsonPropertyName("account")]
public Account Account { get; set; } = null!; public Account Author { get; set; } = null!;
/// <summary> /// <summary>
/// The date when this status was created /// The date when this status was created
@ -154,7 +154,7 @@ public class Status : ASObject
return ReplyToAccount == user.ID || Mentions.Any(m => m.ID == user.ID); return ReplyToAccount == user.ID || Mentions.Any(m => m.ID == user.ID);
} }
public override string ToString() => $"{Account?.Username ?? "unknown"}: \"{Content}\""; public override string ToString() => $"{Author?.Username ?? "unknown"}: \"{Content}\"";
} }
/// <summary> /// <summary>