aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/TimelineService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-17 00:45:54 +0800
committercrupest <crupest@outlook.com>2020-01-17 00:45:54 +0800
commit631731e5c2253116a53fdc435afca184251a34fc (patch)
tree643ff1f397c9b85d6496ec01440c0884fc46dc2e /Timeline/Services/TimelineService.cs
parent2ee49515aa29effe3c78d1a283df6850a5142766 (diff)
downloadtimeline-631731e5c2253116a53fdc435afca184251a34fc.tar.gz
timeline-631731e5c2253116a53fdc435afca184251a34fc.tar.bz2
timeline-631731e5c2253116a53fdc435afca184251a34fc.zip
Fix a bug in delete post.
Diffstat (limited to 'Timeline/Services/TimelineService.cs')
-rw-r--r--Timeline/Services/TimelineService.cs2
1 files changed, 0 insertions, 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)