From 2b294f7137cb0e2d2e7ac7d30cbab12f6c8dc823 Mon Sep 17 00:00:00 2001 From: uwaa Date: Mon, 30 Dec 2024 01:15:13 +0000 Subject: [PATCH] pleroma: rename Status.Account to Author --- Pleroma/Models/Status.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pleroma/Models/Status.cs b/Pleroma/Models/Status.cs index 06d5d57..cca9cb1 100644 --- a/Pleroma/Models/Status.cs +++ b/Pleroma/Models/Status.cs @@ -12,7 +12,7 @@ public class Status : ASObject /// The account that authored this status /// [JsonPropertyName("account")] - public Account Account { get; set; } = null!; + public Account Author { get; set; } = null!; /// /// 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); } - public override string ToString() => $"{Account?.Username ?? "unknown"}: \"{Content}\""; + public override string ToString() => $"{Author?.Username ?? "unknown"}: \"{Content}\""; } ///