mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Various improvements (#383)
* Improve moderation page style * Increase ban period of anti-spam measures to 1 hour * Fix i18n fallbacks in production * Add EMAIL_MAIL_REPLY_TO env variable support
This commit is contained in:
committed by
GitHub
parent
a49b5695f5
commit
426d65df63
@@ -173,7 +173,7 @@ class PostsController < ApplicationController
|
||||
end
|
||||
|
||||
def anti_spam_checks
|
||||
params[:post][:dnf1] != "" || params[:post][:dnf2] != "" || Time.now.to_i - params[:post][:form_rendered_at] < 3
|
||||
params[:post][:dnf1] != "" || params[:post][:dnf2] != "" || Time.now.to_i - params[:post][:form_rendered_at] < 2
|
||||
end
|
||||
|
||||
def invalid_anonymous_submission
|
||||
|
||||
Reference in New Issue
Block a user