From 631731e5c2253116a53fdc435afca184251a34fc Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 17 Jan 2020 00:45:54 +0800 Subject: Fix a bug in delete post. --- Timeline/Services/TimelineService.cs | 2 -- 1 file changed, 2 deletions(-) (limited to 'Timeline/Services/TimelineService.cs') diff --git a/Timeline/Services/TimelineService.cs b/Timeline/Services/TimelineService.cs index af4537af..f7b0e0e9 100644 --- a/Timeline/Services/TimelineService.cs +++ b/Timeline/Services/TimelineService.cs @@ -415,8 +415,6 @@ namespace Timeline.Services if (name == null) throw new ArgumentNullException(nameof(name)); - var timelineId = FindTimelineId(name); - var post = await Database.TimelinePosts.Where(p => p.Id == id).SingleOrDefaultAsync(); if (post == null) -- cgit v1.2.3