Remove unneeded indices, improve error handling in background workers, don't needlessly reload reblogged status, send Devise e-mails asynchronously
This commit is contained in:
parent
95db6cbe28
commit
45c7ee39b3
8 changed files with 20 additions and 6 deletions
|
@ -16,4 +16,8 @@ class User < ApplicationRecord
|
|||
has_settings do |s|
|
||||
s.key :notification_emails, defaults: { follow: true, reblog: true, favourite: true, mention: true }
|
||||
end
|
||||
|
||||
def send_devise_notification(notification, *args)
|
||||
devise_mailer.send(notification, self, *args).deliver_later
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue