From 289c7e1fada1f4dae6ce5e421e997ebddd55c2df 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(-) 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