diff options
| author | crupest <crupest@outlook.com> | 2020-01-31 00:10:23 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-01-31 00:10:23 +0800 |
| commit | eaf6d126db56b7caedd311033403b1f721bb80bc (patch) | |
| tree | dfd6ca1258d61ed91e59be620a39159919d07a3f /Timeline/Services | |
| parent | 49bd47fb0eb81a88cce135f7ff7c25637790e63b (diff) | |
| download | timeline-eaf6d126db56b7caedd311033403b1f721bb80bc.tar.gz timeline-eaf6d126db56b7caedd311033403b1f721bb80bc.tar.bz2 timeline-eaf6d126db56b7caedd311033403b1f721bb80bc.zip | |
...
Diffstat (limited to 'Timeline/Services')
| -rw-r--r-- | Timeline/Services/TimelineService.cs | 3 |
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)
|
