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:
1 parent
a060beee72
commit
c593d6df9c
8 files changed
+36
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user