about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-12 10:17:22 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-12 10:17:22 +0100
commitfdfacb0ec0e81e323e67abde0d4b5b16f0d8bf0a (patch)
tree2d1b24eb11fe85b7d02b98d1a34606a6df845ff0 /app/models/account.rb
parent6df9d388e7cb3d90a6d1fb0a920c1ce16db60822 (diff)
Revert "Revert "Change "Allow trends without prior review" setting to include statuses (#17977)""
This reverts commit bfc539cfb4f040fcffac740b36791c26c2a74119.
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 7059c555f..ab8a65720 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -260,6 +260,10 @@ class Account < ApplicationRecord
     update!(memorial: true)
   end
 
+  def trendable
+    boolean_with_default('trendable', Setting.trendable_by_default)
+  end
+
   def sign?
     true
   end