aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Timeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 01:16:56 +0800
committercrupest <crupest@outlook.com>2020-08-11 01:16:56 +0800
commite02e1e120693d466679cae2b602085f57b60971f (patch)
tree4ef46f3861528b8b5287cc4a6912fb402dee57cd /Timeline/Models/Timeline.cs
parent06e79c99bbc810f16058b35f1c88c23148bf8e57 (diff)
downloadtimeline-e02e1e120693d466679cae2b602085f57b60971f.tar.gz
timeline-e02e1e120693d466679cae2b602085f57b60971f.tar.bz2
timeline-e02e1e120693d466679cae2b602085f57b60971f.zip
Make author column of post nullable.
Diffstat (limited to 'Timeline/Models/Timeline.cs')
-rw-r--r--Timeline/Models/Timeline.cs4
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; }
}