From 648d9e253c1924b832248f26fee42b2fb64dc3bc Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 22 Feb 2020 09:05:26 +0800 Subject: conf: overhaul server settings (#5928) * conf: rename package * Requires Go 1.12 * Fix lint * Fix lint * Overhaul * db: fix tests * Save my work * Fix tests * Server.UnixSocketPermission * Server.LocalRootURL * SSH settings * Server.OfflineMode * Save my work * App.Version * Remove [server] STATIC_ROOT_PATH * Server.LandingURL --- internal/db/issue_mail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db/issue_mail.go') diff --git a/internal/db/issue_mail.go b/internal/db/issue_mail.go index 31643f3a..5219572f 100644 --- a/internal/db/issue_mail.go +++ b/internal/db/issue_mail.go @@ -12,7 +12,7 @@ import ( "gogs.io/gogs/internal/mailer" "gogs.io/gogs/internal/markup" - "gogs.io/gogs/internal/setting" + "gogs.io/gogs/internal/conf" ) func (issue *Issue) MailSubject() string { @@ -95,7 +95,7 @@ func NewMailerIssue(issue *Issue) mailer.Issue { // 1. Repository watchers, users who participated in comments and the assignee. // 2. Users who are not in 1. but get mentioned in current issue/comment. func mailIssueCommentToParticipants(issue *Issue, doer *User, mentions []string) error { - if !setting.Service.EnableNotifyMail { + if !conf.Service.EnableNotifyMail { return nil } -- cgit v1.2.3