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 | 289c7e1fada1f4dae6ce5e421e997ebddd55c2df (patch) | |
tree | 643ff1f397c9b85d6496ec01440c0884fc46dc2e /Timeline/Services/TimelineService.cs | |
parent | 20ebfd4d5efd59304a3426d7b9cc49bf368932d4 (diff) | |
download | timeline-289c7e1fada1f4dae6ce5e421e997ebddd55c2df.tar.gz timeline-289c7e1fada1f4dae6ce5e421e997ebddd55c2df.tar.bz2 timeline-289c7e1fada1f4dae6ce5e421e997ebddd55c2df.zip |
Fix a bug in delete post.
Diffstat (limited to 'Timeline/Services/TimelineService.cs')
-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)
|