pleroma: rename Status.Account to Author
This commit is contained in:
parent
c606e4ed02
commit
2b294f7137
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue