thread reply emails! also a few mail bugfixes
This commit is contained in:
@@ -16,6 +16,7 @@ class ThreadrepliesController < ApplicationController
|
||||
@reply.user_author = current_user
|
||||
@reply.forumthread = thread
|
||||
if @reply.save
|
||||
@reply.send_new_reply_mail
|
||||
redirect_to forumthread_path(@reply.thread) + "#reply-#{@reply.id}", notice: 'Reply created!'
|
||||
else
|
||||
flash[:alert] = "Could not create reply."
|
||||
|
||||
Reference in New Issue
Block a user