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
commit038e8dcf461d4d4ebd51c8fdf7680497869f691c (patch)
treedfd6ca1258d61ed91e59be620a39159919d07a3f /Timeline/Services
parent5aaa4f95e6bdd46e6740c1ecbbd46bdf415eedd2 (diff)
downloadtimeline-038e8dcf461d4d4ebd51c8fdf7680497869f691c.tar.gz
timeline-038e8dcf461d4d4ebd51c8fdf7680497869f691c.tar.bz2
timeline-038e8dcf461d4d4ebd51c8fdf7680497869f691c.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)