aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/TimelinePostEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 18:22:43 +0800
committerGitHub <noreply@github.com>2020-08-11 18:22:43 +0800
commit2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e (patch)
tree56115decfb5e7e7e96c1d84161d7e7c920ce8cff /Timeline/Entities/TimelinePostEntity.cs
parent06e79c99bbc810f16058b35f1c88c23148bf8e57 (diff)
parent12b5ecddb47e50c9f4597553a795c68b09acaddb (diff)
downloadtimeline-2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e.tar.gz
timeline-2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e.tar.bz2
timeline-2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e.zip
Merge pull request #146 from crupest/fix-141
Fix #141 .
Diffstat (limited to 'Timeline/Entities/TimelinePostEntity.cs')
-rw-r--r--Timeline/Entities/TimelinePostEntity.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Entities/TimelinePostEntity.cs b/Timeline/Entities/TimelinePostEntity.cs
index 24bfc7a3..07367fba 100644
--- a/Timeline/Entities/TimelinePostEntity.cs
+++ b/Timeline/Entities/TimelinePostEntity.cs
@@ -20,10 +20,10 @@ namespace Timeline.Entities
public TimelineEntity Timeline { get; set; } = default!;
[Column("author")]
- public long AuthorId { get; set; }
+ public long? AuthorId { get; set; }
[ForeignKey(nameof(AuthorId))]
- public UserEntity Author { get; set; } = default!;
+ public UserEntity? Author { get; set; } = default!;
[Column("content_type"), Required]
public string ContentType { get; set; } = default!;