diff options
author | crupest <crupest@outlook.com> | 2020-08-11 18:22:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 18:22:43 +0800 |
commit | 8999e174b984938760b020e08b9b9d1e886a6941 (patch) | |
tree | 20bfb96ab9935d96d5ea15b2fb89348bcd941ebf /Timeline/Models/Timeline.cs | |
parent | d529b53530270cd7c5d9a90ebcb11e49f7b1eb0d (diff) | |
parent | ed0e023e2eb2cc297ea0d60ea3f20c12ad83cfa8 (diff) | |
download | timeline-8999e174b984938760b020e08b9b9d1e886a6941.tar.gz timeline-8999e174b984938760b020e08b9b9d1e886a6941.tar.bz2 timeline-8999e174b984938760b020e08b9b9d1e886a6941.zip |
Merge pull request #146 from crupest/fix-141
Fix #141 .
Diffstat (limited to 'Timeline/Models/Timeline.cs')
-rw-r--r-- | Timeline/Models/Timeline.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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; }
}
|