From eaf6d126db56b7caedd311033403b1f721bb80bc Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 31 Jan 2020 00:10:23 +0800 Subject: ... --- Timeline/Services/TimelineService.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Timeline/Services/TimelineService.cs') 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) -- cgit v1.2.3