0
0
Fork 0

Add preference for report notification e-mails, skip for duplicates (#8559)

If an unresolved report for the same target account already exists,
no new notification is generated
This commit is contained in:
Eugen Rochko 2018-09-02 00:11:58 +02:00 committed by GitHub
parent a060beee72
commit c593d6df9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 36 additions and 2 deletions

View file

@ -224,6 +224,10 @@ class User < ApplicationRecord
settings.notification_emails['digest']
end
def allows_report_emails?
settings.notification_emails['report']
end
def hides_network?
@hides_network ||= settings.hide_network
end