diff options
| author | Douwe Maan <douwe@gitlab.com> | 2017-04-08 06:11:31 +0000 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2017-04-08 06:11:31 +0000 |
| commit | 3d1cade13f61115b63bf6dbda5a1f194ba54b24b (patch) | |
| tree | e9edc13dbd28ba1eb4bbeb995f596ead2ad28b2c /app/mailers/notify.rb | |
| parent | 4040776430c2bbef689924c206e2c2c46428e4ef (diff) | |
| parent | f058b52b50c76de9557b167a1a31a5c9ba446f31 (diff) | |
| download | gitlab-ce-3d1cade13f61115b63bf6dbda5a1f194ba54b24b.tar.gz | |
Merge branch 'new-resolvable-discussion' into 'master'
Add option to start a new resolvable discussion in an MR
Closes #24378
See merge request !7527
Diffstat (limited to 'app/mailers/notify.rb')
| -rw-r--r-- | app/mailers/notify.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 14df6f8f0a3..f315e38bcaa 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -111,7 +111,7 @@ class Notify < BaseMailer headers["X-GitLab-#{model.class.name}-ID"] = model.id headers['X-GitLab-Reply-Key'] = reply_key - if Gitlab::IncomingEmail.enabled? + if Gitlab::IncomingEmail.enabled? && @sent_notification address = Mail::Address.new(Gitlab::IncomingEmail.reply_address(reply_key)) address.display_name = @project.name_with_namespace @@ -176,6 +176,6 @@ class Notify < BaseMailer end headers['List-Unsubscribe'] = list_unsubscribe_methods.map { |e| "<#{e}>" }.join(',') - @sent_notification_url = unsubscribe_sent_notification_url(@sent_notification) + @unsubscribe_url = unsubscribe_sent_notification_url(@sent_notification) end end |
