about summary refs log tree commit diff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-08-06 13:16:53 +0200
committerThibaut Girka <thib@sitedethib.com>2019-08-06 13:16:53 +0200
commitcad2e6eb7afe96f781175cd829b70a0667d3498a (patch)
tree7efda6a7ca7dbe62d6efa42b17c1167e751c44d3 /app/models/user.rb
parent3ea7a334d89d2c4075b1dbf649d692ff49325f2e (diff)
parent1d8d553d8b5cb23cc67bd530ca9eb70a6683ab2a (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 2a7fffca5..67cf92307 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -207,6 +207,10 @@ class User < ApplicationRecord
     settings.notification_emails['pending_account']
   end
 
+  def allows_trending_tag_emails?
+    settings.notification_emails['trending_tag']
+  end
+
   def hides_network?
     @hides_network ||= settings.hide_network
   end