mastodon/app/models/fasp.rb
David Roetzel 8dc93f718d
Display FASP trends when enabled
This is a temporary measure. The end goal is to interleave
local and FASP trends for optimal UX.
2025-03-06 14:19:10 +01:00

15 lines
289 B
Ruby

# frozen_string_literal: true
module Fasp
DATA_CATEGORIES = %w(account content).freeze
def self.table_name_prefix
'fasp_'
end
def self.capability_enabled?(capability_name)
Mastodon::Feature.fasp_enabled? &&
Provider.with_capability(capability_name).any?
end
end