Fix #3846: Subscribed forum posts link to invalid URL in email updates.
Test: http://localhost/rails/mailers/user_mailer/forum_notice
This commit is contained in:
@@ -3,4 +3,12 @@ class UserMailerPreview < ActionMailer::Preview
|
||||
dmail = User.admins.first.dmails.first
|
||||
UserMailer.dmail_notice(dmail)
|
||||
end
|
||||
|
||||
def forum_notice
|
||||
topic = ForumTopic.first
|
||||
posts = topic.posts
|
||||
user = topic.creator
|
||||
|
||||
UserMailer.forum_notice(user, topic, posts)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user