Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
@ -26,7 +26,7 @@ module Trends
|
||||
end
|
||||
|
||||
def self.request_review!
|
||||
return unless enabled?
|
||||
return if skip_review? || !enabled?
|
||||
|
||||
links_requiring_review = links.request_review
|
||||
tags_requiring_review = tags.request_review
|
||||
@ -46,6 +46,10 @@ module Trends
|
||||
Setting.trends
|
||||
end
|
||||
|
||||
def self.skip_review?
|
||||
Setting.trendable_by_default
|
||||
end
|
||||
|
||||
def self.available_locales
|
||||
@available_locales ||= I18n.available_locales.map { |locale| locale.to_s.split(/[_-]/).first }.uniq
|
||||
end
|
||||
|
Reference in New Issue
Block a user