add info mail for new blog comments
This commit is contained in:
@@ -17,11 +17,18 @@ class RegistrationPreview < ActionMailer::Preview
|
||||
RedstonerMailer.register_info_mail(@@user, true)
|
||||
end
|
||||
|
||||
def thread_reply_mail
|
||||
def new_thread_reply_mail
|
||||
op = User.new(id: 32, name: "TheOP", email: "theopuser@example.com")
|
||||
thread = Forumthread.new(id: 123, user_author: op, title: "Wow, test thread!", content: "You should not see this...")
|
||||
reply = Threadreply.new(id: 312, user_author: @@user, content: "# Markdown!\n\n`incline code`\n\n<b>html?</b>\n\n[yt:abcd1234]\n\n[link](/forums)", forumthread: thread)
|
||||
RedstonerMailer.thread_reply_mail(@@user, reply)
|
||||
RedstonerMailer.new_thread_reply_mail(@@user, reply)
|
||||
end
|
||||
|
||||
def new_post_comment_mail
|
||||
op = User.new(id: 32, name: "TheOP", email: "theopuser@example.com")
|
||||
post = Blogpost.new(id: 123, user_author: op, title: "Wow, test post!", content: "You should not see this...")
|
||||
comment = Comment.new(id: 312, user_author: @@user, content: "Wow, that is **cool**!", blogpost: post)
|
||||
RedstonerMailer.new_post_comment_mail(@@user, comment)
|
||||
end
|
||||
|
||||
def email_change_confirm_mail
|
||||
|
||||
Reference in New Issue
Block a user