Move e-mail digest task to sidekiq, reduce workload, improve hint (#6252)
This commit is contained in:
parent
08e4c78e78
commit
ed867eca9d
6 changed files with 36 additions and 10 deletions
|
@ -170,6 +170,10 @@ class User < ApplicationRecord
|
|||
settings.default_privacy || (account.locked? ? 'private' : 'public')
|
||||
end
|
||||
|
||||
def allows_digest_emails?
|
||||
settings.notification_emails['digest']
|
||||
end
|
||||
|
||||
def token_for_app(a)
|
||||
return nil if a.nil? || a.owner != self
|
||||
Doorkeeper::AccessToken
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue