diff options
Diffstat (limited to 'Timeline/Models')
-rw-r--r-- | Timeline/Models/Http/Timeline.cs | 2 | ||||
-rw-r--r-- | Timeline/Models/Timeline.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs index 5404d561..52e26190 100644 --- a/Timeline/Models/Http/Timeline.cs +++ b/Timeline/Models/Http/Timeline.cs @@ -21,7 +21,7 @@ namespace Timeline.Models.Http public TimelinePostContentInfo? Content { get; set; }
public bool Deleted { get; set; }
public DateTime Time { get; set; }
- public UserInfo Author { get; set; } = default!;
+ public UserInfo? Author { get; set; } = default!;
public DateTime LastUpdated { get; set; } = default!;
}
diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs index 7afb1984..34c253a0 100644 --- a/Timeline/Models/Timeline.cs +++ b/Timeline/Models/Timeline.cs @@ -48,7 +48,7 @@ namespace Timeline.Models public class TimelinePost
{
- public TimelinePost(long id, ITimelinePostContent? content, DateTime time, User author, DateTime lastUpdated, string timelineName)
+ public TimelinePost(long id, ITimelinePostContent? content, DateTime time, User? author, DateTime lastUpdated, string timelineName)
{
Id = id;
Content = content;
@@ -62,7 +62,7 @@ namespace Timeline.Models public ITimelinePostContent? Content { get; set; }
public bool Deleted => Content == null;
public DateTime Time { get; set; }
- public User Author { get; set; }
+ public User? Author { get; set; }
public DateTime LastUpdated { get; set; }
public string TimelineName { get; set; }
}
|