mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-11 20:21:10 +00:00

This is a temporary measure. The end goal is to interleave local and FASP trends for optimal UX.
15 lines
289 B
Ruby
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
|