about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-08-28 04:00:39 +0200
committerGitHub <noreply@github.com>2022-08-28 04:00:39 +0200
commit546672e292dc3218e996048464c4c52e5d00f766 (patch)
treeb3d0e0b00baf0b62cd092a144b9c43b7550f5987 /app/models
parentc57907737a35d05d4bb936acd662df6ce725456f (diff)
Change "Allow trends without prior review" setting to include statuses (#17977)
* Change "Allow trends without prior review" setting to include posts

* Fix i18n-tasks
Diffstat (limited to 'app/models')
-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 d25afeb89..1be7b4d12 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -258,6 +258,10 @@ class Account < ApplicationRecord
     update!(memorial: true)
   end
 
+  def trendable
+    boolean_with_default('trendable', Setting.trendable_by_default)
+  end
+
   def sign?
     true
   end