thread reply emails! also a few mail bugfixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
protect_from_forgery
|
||||
before_filter :update_ip, :update_seen, :check_banned
|
||||
# force_ssl
|
||||
# TODO: force_ssl
|
||||
|
||||
http_basic_authenticate_with name: "redstone", password: "sheep_"
|
||||
|
||||
|
||||
@@ -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