about summary refs log tree commit diff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-26 10:30:45 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-02-26 10:46:26 +0100
commitc6df6686af01e774b2b4618e96194bf80db6ecf2 (patch)
treed05719cda14674586cf82190d8bc0e0c59cff647 /app/models/user.rb
parent4eed5019a23084816931cf9a0f426003aa160256 (diff)
Disable notifications for trending links and trending statuses by default
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index cb03e99a0..77685ad02 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -269,10 +269,18 @@ class User < ApplicationRecord
     settings.notification_emails['appeal']
   end
 
-  def allows_trends_review_emails?
+  def allows_trending_tags_review_emails?
     settings.notification_emails['trending_tag']
   end
 
+  def allows_trending_links_review_emails?
+    settings.notification_emails['trending_link']
+  end
+
+  def allows_trending_statuses_review_emails?
+    settings.notification_emails['trending_status']
+  end
+
   def hides_network?
     @hides_network ||= settings.hide_network
   end