[backend/masto-client] Fix StatusEntity auto-accessors
This commit is contained in:
parent
0b6ac41257
commit
271f272ead
1 changed files with 4 additions and 3 deletions
|
@ -9,9 +9,6 @@ namespace Iceshrimp.Backend.Controllers.Mastodon.Schemas.Entities;
|
||||||
|
|
||||||
public class StatusEntity : IEntity
|
public class StatusEntity : IEntity
|
||||||
{
|
{
|
||||||
[J("text")] [JI(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
||||||
public required string? Text;
|
|
||||||
|
|
||||||
[J("content")] public required string? Content { get; set; }
|
[J("content")] public required string? Content { get; set; }
|
||||||
[J("uri")] public required string Uri { get; set; }
|
[J("uri")] public required string Uri { get; set; }
|
||||||
[J("url")] public required string Url { get; set; }
|
[J("url")] public required string Url { get; set; }
|
||||||
|
@ -34,6 +31,10 @@ public class StatusEntity : IEntity
|
||||||
[J("spoiler_text")] public required string ContentWarning { get; set; }
|
[J("spoiler_text")] public required string ContentWarning { get; set; }
|
||||||
[J("visibility")] public required string Visibility { get; set; }
|
[J("visibility")] public required string Visibility { get; set; }
|
||||||
|
|
||||||
|
[J("text")]
|
||||||
|
[JI(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
|
public required string? Text { get; set; }
|
||||||
|
|
||||||
[J("pinned")]
|
[J("pinned")]
|
||||||
[JI(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
[JI(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||||
public required bool? IsPinned { get; set; }
|
public required bool? IsPinned { get; set; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue