fixes
This commit is contained in:
@@ -37,6 +37,9 @@ class PostsController < ApplicationController
|
|||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def error
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def search_error(exception)
|
def search_error(exception)
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ class AnonymousUser
|
|||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def email
|
||||||
|
""
|
||||||
|
end
|
||||||
|
|
||||||
def last_forum_read_at
|
def last_forum_read_at
|
||||||
Time.now
|
Time.now
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ module Maintenance
|
|||||||
class LoginReminderMailer < ActionMailer::Base
|
class LoginReminderMailer < ActionMailer::Base
|
||||||
def notice(user)
|
def notice(user)
|
||||||
@user = user
|
@user = user
|
||||||
mail(:to => user.email, :subject => "#{Danbooru.config.app_name} login reminder", :from => Danbooru.config.contact_email)
|
if user.email.present?
|
||||||
|
mail(:to => user.email, :subject => "#{Danbooru.config.app_name} login reminder", :from => Danbooru.config.contact_email)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user