Add unsubscribe link to changeset notification mails

This commit is contained in:
Tom Hughes 2024-02-24 11:08:53 +00:00
parent 8e21e4e801
commit f0764d3eca
12 changed files with 227 additions and 4 deletions

View file

@ -162,6 +162,7 @@ class UserMailer < ApplicationMailer
@changeset_comment = comment.changeset.tags["comment"].presence
@time = comment.created_at
@changeset_author = comment.changeset.user.display_name
@unsubscribe_url = changeset_unsubscribe_url(comment.changeset)
@author = @commenter
subject = if @owner