diff options
| author | transtrike <transtrike@gmail.com> | 2021-02-03 20:54:49 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-02-03 20:54:49 +0200 |
| commit | 5446e356a9783645f5599fb2b4f7fe8f4d05e30e (patch) | |
| tree | a091c43d3c661eeff7a6cfcdb1d5200700c34b2e /src/DevHive.Services/Services/PostService.cs | |
| parent | b045833c3c490f02b6b65ab78aa46c938117718e (diff) | |
| download | DevHive-5446e356a9783645f5599fb2b4f7fe8f4d05e30e.tar DevHive-5446e356a9783645f5599fb2b4f7fe8f4d05e30e.tar.gz DevHive-5446e356a9783645f5599fb2b4f7fe8f4d05e30e.zip | |
Post Editing preserves Post's comments
Diffstat (limited to 'src/DevHive.Services/Services/PostService.cs')
| -rw-r--r-- | src/DevHive.Services/Services/PostService.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DevHive.Services/Services/PostService.cs b/src/DevHive.Services/Services/PostService.cs index 8002468..6dbb272 100644 --- a/src/DevHive.Services/Services/PostService.cs +++ b/src/DevHive.Services/Services/PostService.cs @@ -105,6 +105,7 @@ namespace DevHive.Services.Services } post.Creator = await this._userRepository.GetByIdAsync(updatePostServiceModel.CreatorId); + post.Comments = await this._commentRepository.GetPostComments(updatePostServiceModel.PostId); post.TimeCreated = DateTime.Now; bool result = await this._postRepository.EditAsync(updatePostServiceModel.PostId, post); |
