Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928)

* Fix a panic in NotifyCreateIssueComment (caused by string truncation)

* more unit tests

* refactor

* fix some edge cases

* use SplitStringAtByteN for comment content
This commit is contained in:
2021-12-09 13:41:17 +08:00
committed by GitHub
parent 183175263d
commit c7e23401a3
4 changed files with 104 additions and 17 deletions

View File

@@ -6,7 +6,6 @@ package models
import (
"code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo"
)