diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-01-19 01:28:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 01:28:38 +0800 |
commit | 84f8ef3df6316cb8fe8048556288452c07da4d7b (patch) | |
tree | 296b77f102062d9a8e847b25d175e78eefca2c0b /models | |
parent | 11b482779136fdfb5faf8cffe3241ed0578f82c2 (diff) | |
download | gitea-84f8ef3df6316cb8fe8048556288452c07da4d7b.tar.gz gitea-84f8ef3df6316cb8fe8048556288452c07da4d7b.zip |
Fix PR comments UI (#18323)
Closes:
* Review comment cannot be edited #17768
* Changing PR Comment Resolved State Disables Further Changes #18315
Diffstat (limited to 'models')
-rw-r--r-- | models/issue_comment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 99c38bcf59..f4a6b3ce13 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -519,7 +519,7 @@ func (c *Comment) LoadPoster() error { return c.loadPoster(db.GetEngine(db.DefaultContext)) } -// LoadAttachments loads attachments +// LoadAttachments loads attachments (it never returns error, the error during `GetAttachmentsByCommentIDCtx` is ignored) func (c *Comment) LoadAttachments() error { if len(c.Attachments) > 0 { return nil |