aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-10-01 17:24:43 +0200
committerGitHub <noreply@github.com>2021-10-01 11:24:43 -0400
commit3b06675811cb3cce71447c47434661757e1ea38a (patch)
tree2ce9f16e63984ce37230eaf0c9e005e1a99d1264 /models/issue.go
parent347d48fdfe07946bb6bbd3850bc4a87216113a34 (diff)
downloadgitea-3b06675811cb3cce71447c47434661757e1ea38a.tar.gz
gitea-3b06675811cb3cce71447c47434661757e1ea38a.zip
Always set a unique Message-ID header. (#17206)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/models/issue.go b/models/issue.go
index b8c7053b2d..9b02a83900 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -17,7 +17,6 @@ import (
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/references"
- "code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/timeutil"
@@ -415,18 +414,6 @@ func (issue *Issue) HasLabel(labelID int64) bool {
return issue.hasLabel(db.GetEngine(db.DefaultContext), labelID)
}
-// ReplyReference returns tokenized address to use for email reply headers
-func (issue *Issue) ReplyReference() string {
- var path string
- if issue.IsPull {
- path = "pulls"
- } else {
- path = "issues"
- }
-
- return fmt.Sprintf("%s/%s/%d@%s", issue.Repo.FullName(), path, issue.Index, setting.Domain)
-}
-
func (issue *Issue) addLabel(e db.Engine, label *Label, doer *User) error {
return newIssueLabel(e, issue, label, doer)
}