aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-31 00:10:23 +0800
committercrupest <crupest@outlook.com>2020-01-31 00:10:23 +0800
commiteaf6d126db56b7caedd311033403b1f721bb80bc (patch)
treedfd6ca1258d61ed91e59be620a39159919d07a3f /Timeline/Services
parent49bd47fb0eb81a88cce135f7ff7c25637790e63b (diff)
downloadtimeline-eaf6d126db56b7caedd311033403b1f721bb80bc.tar.gz
timeline-eaf6d126db56b7caedd311033403b1f721bb80bc.tar.bz2
timeline-eaf6d126db56b7caedd311033403b1f721bb80bc.zip
...
Diffstat (limited to 'Timeline/Services')
-rw-r--r--Timeline/Services/TimelineService.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Services/TimelineService.cs b/Timeline/Services/TimelineService.cs
index 16402f3e..85445973 100644
--- a/Timeline/Services/TimelineService.cs
+++ b/Timeline/Services/TimelineService.cs
@@ -348,6 +348,9 @@ namespace Timeline.Services
if (name == null)
throw new ArgumentNullException(nameof(name));
+ // Currently we don't use the result. But we need to check the timeline.
+ var _ = await FindTimelineId(name);
+
var post = await Database.TimelinePosts.Where(p => p.Id == id).SingleOrDefaultAsync();
if (post == null)