diff options
author | crupest <crupest@outlook.com> | 2020-01-17 00:45:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-17 00:45:54 +0800 |
commit | 631731e5c2253116a53fdc435afca184251a34fc (patch) | |
tree | 643ff1f397c9b85d6496ec01440c0884fc46dc2e | |
parent | 2ee49515aa29effe3c78d1a283df6850a5142766 (diff) | |
download | timeline-631731e5c2253116a53fdc435afca184251a34fc.tar.gz timeline-631731e5c2253116a53fdc435afca184251a34fc.tar.bz2 timeline-631731e5c2253116a53fdc435afca184251a34fc.zip |
Fix a bug in delete post.
-rw-r--r-- | Timeline/Services/TimelineService.cs | 2 |
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)
|