remove thread mention mail, use reply mail instead

This commit is contained in:
jomo
2015-02-08 01:47:20 +01:00
parent 8af9d9922b
commit 61f51666fb
6 changed files with 10 additions and 73 deletions

View File

@@ -29,12 +29,6 @@ class AllPreview < ActionMailer::Preview
RedstonerMailer.new_thread_reply_mail(@@user, reply)
end
def new_thread_reply_mention_mail
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@mention\n`incline code`\n\n<b>html?</b>\n\n[yt:abcd1234]\n\n[link](/forums)", forumthread: thread)
RedstonerMailer.new_thread_reply_mention_mail(@@user, reply)
end
def new_post_mention_mail
post = Blogpost.new(id: 123, user_author: @@op, title: "Wow, test post!", content: "@mention Wow, that is **cool**!")
RedstonerMailer.new_post_mention_mail(@@user, post)