diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-26 10:45:44 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-02-26 10:46:26 +0100 |
commit | 756f1b6615ac858c958468d1306c39a06db551bb (patch) | |
tree | 85502a84cbb506c39858342437e73a02d72447ed /app/models/trends | |
parent | c6df6686af01e774b2b4618e96194bf80db6ecf2 (diff) |
Add option (on by default) to allow toots with content warnings to trend
Diffstat (limited to 'app/models/trends')
-rw-r--r-- | app/models/trends/statuses.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/trends/statuses.rb b/app/models/trends/statuses.rb index e785413ec..e9c48a06b 100644 --- a/app/models/trends/statuses.rb +++ b/app/models/trends/statuses.rb @@ -93,7 +93,7 @@ class Trends::Statuses < Trends::Base original_status.public_visibility? && original_status.account.discoverable? && !original_status.account.silenced? && - original_status.spoiler_text.blank? && !original_status.sensitive? && !original_status.reply? + (original_status.spoiler_text.blank? || Setting.trending_status_cw) && !original_status.sensitive? && !original_status.reply? end def calculate_scores(statuses, at_time) |