aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Timeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-07-10 16:10:17 +0800
committercrupest <crupest@outlook.com>2020-07-10 16:10:17 +0800
commitf93ac5c1b21f9bee827c51955bd831ce0d322aaf (patch)
tree05299533101e2120af1bf85e56fa9f7166563924 /Timeline/Models/Timeline.cs
parentb347fcf45abdae58352cf07e24ec907e1f77a31a (diff)
downloadtimeline-f93ac5c1b21f9bee827c51955bd831ce0d322aaf.tar.gz
timeline-f93ac5c1b21f9bee827c51955bd831ce0d322aaf.tar.bz2
timeline-f93ac5c1b21f9bee827c51955bd831ce0d322aaf.zip
Add unit tests.
Diffstat (limited to 'Timeline/Models/Timeline.cs')
-rw-r--r--Timeline/Models/Timeline.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs
index b1772fa7..7afb1984 100644
--- a/Timeline/Models/Timeline.cs
+++ b/Timeline/Models/Timeline.cs
@@ -60,6 +60,7 @@ namespace Timeline.Models
public long Id { get; set; }
public ITimelinePostContent? Content { get; set; }
+ public bool Deleted => Content == null;
public DateTime Time { get; set; }
public User Author { get; set; }
public DateTime LastUpdated { get; set; }